string.match.regex

Syntax

smatch := string.match.regex(source,sreg)

Returns the results of matching the regular expression sreg against the string source.

Returns:

smatch - The match of the regular expression.

Arguments:

source - The string to match the regular expression against. sreg - The regular expression being matched against.