string.find.regex

Syntax

i := string.find.regex(source,sreg)

Returns the index of the first match in string source of the regular expression sreg.

Returns 0 if no match was found.

Returns:

i - The index of the first match of the regular expression sreg, or 0 if none was found.

Arguments:

source - The string to search sreg - the regular expression to search for