Y
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
logn
3982 days ago
"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
link
chavo-b
3982 days ago
ok, tnx, now it makes sense
link
http://www.regular-expressions.info/possessive.html