regex

represents a regular expression

Methods

array match(string) Returns an array containing the match groups if the entire string matches this regular expression, otherwise returns null
array find(string) 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


Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.