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

2011-03-11 Thread Senthil Kumaran
Senthil Kumaran added the comment: Okay, fixed in all relevant branches. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

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

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset d676601fee6f by Senthil Kumaran in branch '3.1': Fix issue11283 - Clarifying a re pattern in the re module docs for conditional regex http://hg.python.org/cpython/rev/d676601fee6f -- ___ Python tracker

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

2011-03-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 06cca90ff105 by orsenthil in branch 'default': Fix issue11283 - Clarifying a re pattern in the re module docs for conditional regex http://hg.python.org/cpython/rev/06cca90ff105 -- nosy: +python-dev ___

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

2011-02-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thinking about the regex pattern again. The example given is not really wrong. It does what it claims to match, that is '' and 'u...@example.com' and reject ' kind of string. Also, this is not an example of validating an email address or finding an email a

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

2011-02-27 Thread Senthil Kumaran
On Tue, Feb 22, 2011 at 08:48:20AM +, wesley chun wrote: > > The fix is to add the end char '$' to the regex to get all 4 working: Better would be a regex for white-space '\s' which would achieve the same purpose plus it would satisfy the other requirement for using it with search and can do

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

2011-02-25 Thread wesley chun
wesley chun 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 f

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

2011-02-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +pitrou stage: -> patch review versions: -Python 2.5, Python 2.6 ___ Python tracker ___ ___ Pyt

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

2011-02-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-02-22 Thread wesley chun
New submission from wesley chun : In the re docs, it states the following for the conditional regular expression syntax: (?(id/name)yes-pattern|no-pattern) Will try to match with yes-pattern if the group with given id or name exists, and with no-pattern if it doesn’t. no-pattern is optional an