Lua Methods Reference > General Methods > regex_match

The regex_match method performs a regular expression match on a string. If the string matches the regular expression the full string (and sub-matches) are returned. The match is case sensitive by default.
regex_match( input, regex [, case] )
(boolean) A boolean that specifies whether the match is case-sensitive. The match is case sensitive by default (true).
(Strings). Multiple strings that can be assigned to a table. To assign the return values to a table, surround the function call with braces. For example:
matches = { regex_match( input, regex ) }