re bug?

rubygeek at yahoo.com rubygeek at yahoo.com
Fri Dec 1 05:05:14 CET 2000


active-python2.0, win2k

> re.sub("(\d+) (\d+)","\1\2","abc 34 23")
"abc \001\002"

> re.sub("(\d+) (\d+)","\\1\\2","abc 34 23")
"abc 3423"

can anyone explain this?





More information about the Python-list mailing list