[issue8122] re.sub doesn't handle properly matches with yes-pattern no-pattern

2010-03-12 Thread Guido van Rossum
Guido van Rossum added the comment: You can't use (...) syntax in substitution strings, only \N references. -- nosy: +gvanrossum resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue8122] re.sub doesn't handle properly matches with yes-pattern no-pattern

2010-03-12 Thread Brian Curtin
Changes by Brian Curtin : -- components: +Library (Lib) -Build priority: -> normal stage: -> test needed type: -> behavior ___ Python tracker ___ __

[issue8122] re.sub doesn't handle properly matches with yes-pattern no-pattern

2010-03-12 Thread oliv
New submission from oliv : Using python 2.6.4 on Arch Linux The regular expression syntax in python indicate: (?(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. I used that functionnality but t