Does Emacs regex support possessive quantifiers? -


referring this question, found quite interesting. can't test right if emacs supports possessive quantifiers. manual says lazy quantifiers supported:

?, +?, ?? non-greedy variants of operators above. normal operators ‘’, ‘+’, ‘?’ match as can, long overall regexp can still match. following ‘?’, match little possible...

but not find possessive quantifiers ?+, *+, ++

for example on string ab
.*+a|b would match b .*a|b would match a.

are possessive quantifiers supported in emacs regex flavor?

no, emacs not support *+ etc. see elisp manual, node regexp special.


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -