首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX
›
程序员
请教个 nginx lua 正则问题
xnile
·
2020-11-17 14:27:48 +08:00
· 1412 次点击
这是一个创建于 1432 天前的主题,其中的信息可能已经有所发展或是发生改变。
from,to = ngx.re.find(payload, [=[\/\*\!?|\/\/|#]=], 'ijo')
请问下表达式中开头和和结尾分别用[=,=]包起的来的作用是啥,没查到解释?
Lua
payload
Nginx
ijo'
2 条回复
•
2020-11-17 16:33:19 +08:00
1
xycc
2020-11-17 15:37:42 +08:00
https://www.lua.org/manual/5.3/manual.html#3.1
raw string 不用转义了
2
xnile
OP
2020-11-17 16:33:19 +08:00
@
xycc
#1 感谢指点
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
935 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 20:07
·
PVG 04:07
·
LAX 13:07
·
JFK 16:07
Developed with
CodeLauncher
♥ Do have faith in what you're doing.