Lua Methods Reference > General Methods > regex_search

regex_search
The regex_search method performs a regular expression search on a string. This method returns a LuaRegexMatch object, rather than strings.
Syntax
regex_search ( input, regex [, case])
Arguments
 
(boolean) A boolean that specifies whether the match is case-sensitive. The match is case sensitive by default (true).
Returns
(LuaRegexMatch).