I remember? :and? =Almost the same, but? : capture while? =Do not capture
黄舟2017-05-19 10:37:15
I don’t know what your needs are. Judging from the title alone, there is not much difference
?=is positive lookahead ?:is not capturing
过去多啦不再A梦2017-05-19 10:37:15
If you check whether it matches, then it will definitely return true, but if you take Full match, the two are different.
To understand the meaning of Lookahead, it matches a position, not the real character
Recommend a website for testing regex
https://regex101.com
Use the two regular expressions and 1333 tests you provided to separate the results