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

请教个 nginx lua 正则问题

  •  
  •   xnile · Nov 17, 2020 · 2121 views
    This topic created in 2066 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   ·   2721 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 15:30 · PVG 23:30 · LAX 08:30 · JFK 11:30
    ♥ Do have faith in what you're doing.