Match-Regex*

(match-regex* regex string flags) -> list of matches or #f

Given a regex and a string, returns all matches.

Example:

>> (define wr (make-regex "[a-z]+"))
:: [regex 547220]
>> (match-regex* wr "123 alpha 456")
:: ("alpha")
>> (match-regex* wr "123 alpha 456 beta")
:: ("alpha" "beta")

See Also: match-regex, <regex>

Warning:

If the regex can match a null string, match-regex* will loop forever.