find(string substring) | finds instances of this regular expression within the given string and returns an array of the results |
match(string string) | returns an array containing the match groups if the entire string matches this regular expression, otherwise returns null |
Finds instances of this regular expression within the given string and returns an array of the results.
Each result is a table containing two slots: "match" gives the matched substring and "index" gives the integer position of this match within the larger string
Returns an array containing the match groups if the entire string
matches this regular expression, otherwise returns null