What does the “?:^” regular expression mean?

后端 未结 6 921
悲&欢浪女
悲&欢浪女 2021-02-01 08:39

I am looking at this sub-expression (this is in JavaScript):

(?:^|.....)

I know that ? means \"zero or one times\" when it fol

6条回答
  •  孤城傲影
    2021-02-01 09:09

    "(?:x) Matches 'x' but does not remember the match."

    https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Regular_Expressions

提交回复
热议问题