all-matching-slices ( string regexp -- seq )
Regular expressions ยป Matching operations with regular expressions

Prev:count-matches ( string regexp -- n )
Next:all-matching-subseqs ( string regexp -- seq )


Vocabulary
regexp

Inputs
stringa string
regexpa regexp


Outputs
seqa sequence of slices of the input


Word description
Finds a sequence of disjoint substrings which each match the pattern. It chooses this by finding the leftmost longest match, and then the leftmost longest match which starts after the end of the previous match, and so on.

Definition