Handbook
Glossary
re-split ( string regexp -- seq )
Regular expressions
ยป
Matching operations with regular expressions
Prev:
all-matching-subseqs ( string regexp -- seq )
Next:
re-replace ( string regexp replacement -- result )
Vocabulary
regexp
Inputs
string
a
string
regexp
a
regexp
Outputs
seq
a sequence of slices of the input
Word description
Splits the input string into chunks separated by the regular expression. Each chunk contains no match of the regexp. The chunks are chosen by the strategy of
all-matching-slices
.
Definition
USING:
regexp.private
sequences.private
;
IN:
regexp
:
re-split
( string regexp -- seq )
[
<slice-unsafe>
]
(re-split)
;