Match-Regex

(match-regex regex string ?flags) -> match or #f

Given a regex and a string, returns the first match.

Example:

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

See Also: match-regex*, <regex>