search

Home  >  Q&A  >  body text

javascript - Does regular expression in js support conditional matching?

?(子表达式)需要执行的表达式
例:(abc)2333(?(1)\w)

Only when the subexpression matches successfully, the following expression will be matched. Does js support this writing method? If you try it, an error will be reported directly.

为情所困为情所困2738 days ago680

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-19 10:42:26

    Unfortunately, Javascript is not supported currently. C#, php, python, etc. all support this advanced syntax.

    reply
    0
  • Cancelreply