[issue1519638] Unmatched Group issue - workaround

Bobby Xiao report at bugs.python.org
Wed Dec 24 22:30:43 CET 2008


Bobby Xiao <nneonneo at gmail.com> added the comment:

How would I apply that workaround to my example?

re.sub("foo(?:b(ar)|baz)","\\1","foobaz")

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


More information about the Python-bugs-list mailing list