> Tim's given you the solution to the problem: with the re module, > *always* use raw strings in regexes and substitution strings.
"always" is so...um...carved in stone. One can forego using raw strings if one prefers having one's strings looked like they were trampled by a stampede of creatures with backslash-shaped hooves... uh...yeah...stick with raw strings. :) -tkc -- http://mail.python.org/mailman/listinfo/python-list