re bug?

rubygeek at yahoo.com rubygeek at yahoo.com
Thu Nov 30 23:05:14 EST 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