• 请不要在回答技术问题时复制粘贴 AI 生成的内容
xnile
V2EX  ›  程序员

请教个 nginx lua 正则问题

  •  
  •   xnile · Nov 17, 2020 · 2064 views
    This topic created in 2032 days ago, the information mentioned may be changed or developed.
    from,to = ngx.re.find(payload, [=[\/\*\!?|\/\/|#]=], 'ijo')
    

    请问下表达式中开头和和结尾分别用[=,=]包起的来的作用是啥,没查到解释?

    2 replies    2020-11-17 16:33:19 +08:00
    xycc
        1
    xycc  
       Nov 17, 2020
    xnile
        2
    xnile  
    OP
       Nov 17, 2020
    @xycc #1 感谢指点
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5672 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 01:50 · PVG 09:50 · LAX 18:50 · JFK 21:50
    ♥ Do have faith in what you're doing.