Does Emacs regex support possessive quantifiers?

Referring to this question, which I found quite interesting. Can't test right now if Emacs supports possessive quantifiers. The manual says that lazy quantifiers are supported:

?, +?, ?? are non-greedy variants of the operators above. The normal operators '', '+', '?' match as much as they can, as long as the overall regexp can still match. With a following '?', they will match as little as possible...

But could not find anything about possessive quantifiers like ?+ , *+ , ++

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

Are possessive quantifiers supported in Emacs regex flavor?


不,Emacs不支持*+等。请参阅Elisp手册,节点Regexp Special。

链接地址: http://www.djcxy.com/p/13428.html

上一篇: 为什么贪婪的量词比懒惰的量词便宜

下一篇: Emacs正则表达式支持占有量词吗?