FunctionPackage: exclToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version

split-regexp

Arguments: regexp string &rest args &key count start end &allow-other-keys

Scan string for a delimiter given by regexp and return a list of substrings. If count is given, then split into no more than count substrings, in which case the last substring will contain the rest of the string.

Use of this function is deprecated and it is maintained for backward compatibility only. See regexp.htm for information on the newer regular expression compiler in Allegro CL. You should use the functionality described there instead of this function is new code.

Examples:

(split-regexp (make-string 1 :initial-element #\newline)
              (format nil "1~%2~%3~%4~%5"))
  --> ("1" "2" "3" "4" "5")

(split-regexp ":" "1:2:3:4:5")
 --> ("1" "2" "3" "4" "5")

(split-regexp ":" "1:2:3:4:")
  --> ("1" "2" "3" "4")

Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version