ngx.re.matchngx.re.findngx.re.gmatchngx.re.subngx.re.gsub 看上面官方文档。 转载于:https://www.cnblogs.com/snailgardening/p/ngnix_lua_regular.html