[issue16203] Proposal: add re.fullmatch() method

Antoine Pitrou report at bugs.python.org
Sat Oct 13 19:45:43 CEST 2012


Antoine Pitrou added the comment:

> Tim, my point is that if the MULTILINE flag happens to be turned on,
> '$' won't just match at the end of the string (or slice), it'll also
> match at a newline, so wrapping the pattern in (?:...)$ in that case
> could give the wrong answer, but wrapping it in (?:...)\Z would give
> the right answer.

This means Tim and Guido are right that a dedicated fullmatch() method
is desireable.

----------

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


More information about the Python-bugs-list mailing list