Handbook
Glossary
split ( subject obj -- strings )
PCRE2 binding
Prev:
matches? ( subject obj -- ? )
Next:
has-option? ( pcre2 option -- ? )
Vocabulary
pcre2
Inputs
subject
a
string
obj
a string, compiled regular expression or a regexp literal
Outputs
strings
a
sequence
Word description
Splits the subject around every match of the regexp, returning the non-empty pieces in between.
Definition
USING:
kernel
pcre2.private
sequences
;
IN:
pcre2
:
split
( subject obj -- strings )
dupd
findall
[
first
second
]
map
split-subseqs
;