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
Post a Comment