regsub.gsub eats backslashes

Warren Postma embed at geocities.com
Wed Mar 29 11:08:17 EST 2000


> Does anyone have a clue? Is there a better way to do this?

Well, Python itself can use raw strings (r"..."), for starters:

>>> x = r"Testing\Testing"
>>> print x
Testing\Testing
>>>






More information about the Python-list mailing list