[issue12078] re.sub() replaces only several matches

2011-05-14 Thread Andriy Rysin
Andriy Rysin added the comment: Ahh, I guess I should have read the docs. But then looks like I am not the fist or only one so it's not as embarrassing. :) I would support the proposal in #11957 to make re flags non-int object -- ___ P

[issue12078] re.sub() replaces only several matches

2011-05-14 Thread Andriy Rysin
New submission from Andriy Rysin : When trying to replace strings with parenthesis (in the given example - alternative writing of the words in Ukrainian) the sed replace performs correctly replacing all occurrences, while python3 re.sub() function replaces only first two

[issue12078] re.sub() replaces only several matches

2011-05-14 Thread Andriy Rysin
Changes by Andriy Rysin : Added file: http://bugs.python.org/file22001/test.txt ___ Python tracker <http://bugs.python.org/issue12078> ___ ___ Python-bugs-list mailin

[issue12078] re.sub() replaces only several matches

2011-05-14 Thread Andriy Rysin
Changes by Andriy Rysin : Added file: http://bugs.python.org/file22000/repl.py ___ Python tracker <http://bugs.python.org/issue12078> ___ ___ Python-bugs-list mailin

[issue12078] re.sub() replaces only several matches

2011-05-14 Thread Andriy Rysin
Changes by Andriy Rysin : -- components: Regular Expressions files: repl.sh nosy: arysin priority: normal severity: normal status: open title: re.sub() replaces only several matches versions: Python 3.1 Added file: http://bugs.python.org/file21999/repl.sh