[docs] [issue29291] Misleading text in the documentation of re library for non-greedy match

Serhiy Storchaka report at bugs.python.org
Tue Jan 17 03:44:38 EST 2017


Serhiy Storchaka added the comment:

The documentation doesn't look incorrect to me. The non-greedy match doesn't fallback to the greedy match, it always matches as few characters as *possible* will be matched. For example a.match("<a> b <c><span><d> e <f><span>") matches "<a> b <c><span>", not "<a> b <c><span><d> e <f><span>".

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29291>
_______________________________________


More information about the docs mailing list