I remember? :and? =Almost the same, but? : capture while? =Do not capture
擁有18年軟件開發(fā)和IT教學(xué)經(jīng)驗(yàn)。曾任多家上市公司技術(shù)總監(jiān)、架構(gòu)師、項(xiàng)目經(jīng)理、高級(jí)軟件工程師等職務(wù)。 網(wǎng)絡(luò)人氣名人講師,...
I don’t know what your needs are. Judging from the title alone, there is not much difference
?=is positive lookahead ?:is not capturing
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