Hacker News new | ask | show | jobs
by chavo-b 3982 days ago
why the resulting regex contains ++ instead of only one + ? such regexs are wrong!
1 comments

"Possessive quantifiers are a way to prevent the regex engine from trying all permutations. This is primarily useful for performance reasons. You can also use possessive quantifiers to eliminate certain matches."

http://www.regular-expressions.info/possessive.html

ok, tnx, now it makes sense