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