A
regular expression is the specification of the syntax of a simple language. Regular expressions are used with methods to search, replace, and extract information from strings. The methods that work with regular expressions are
regexp.exec,
regexp.test,
string.match,
string.replace,
string.search, and
string.split.
转载于:https://www.cnblogs.com/zhtf2014/archive/2010/07/12/1776031.html