string.find.regex
Syntax
Returns the index of the first match in string source of the regular expression sreg.
Returns 0 if no match was found.
i - The index of the first match of the regular expression sreg, or 0 if none was found.
source - The string to search sreg - the regular expression to search for
string.find
string.join
9.2.16