The re module is LPeg, it just uses string grammars instead of language constructs. http://www.inf.puc-rio.br/~roberto/lpeg/re.html.  There are no pcre/re2 like regex's in Lua.