[docs] [issue11283] incorrect pattern in the re module docs for conditional regex

wesley chun report at bugs.python.org
Sat Feb 26 00:55:51 CET 2011

wesley chun <wescpy at gmail.com> added the comment:

i wanted to add one additional comment that it would be nice to have a
regex that works with search() (in addition to match()) because such
an email address may appear in the middle of a line, say a From: or
To: email header.

the fix of using a '$' prevents this from happening, so i'm not 100%
satisfied with the patch although it does fix the regex to get it
working with match().


Python tracker <report at bugs.python.org>

More information about the docs mailing list