I have been seeing this in some PHP script:
[a-zA-Z0-9_]++
What does the double plus mean?
That's a Possessive Quantifier.
It basically means that if the regex engine fails matching later, it will not go back and try to undo the matches it made here. In most cases, it allows the engine to fail much faster, and can give you some control where you need it - which is very rare for most uses.
1.4m articles
1.4m replys
5 comments
57.0k users