raw Strings from XML attributes

Peter Otten __peter__ at web.de
Fri Jun 11 13:08:27 EDT 2004


Karen Loughran wrote:

> .  But because it isn't raw it won't match.

I fear you have a misconception about raw strings.

r"\abc"
"\\abc" 

and 

chr(92) + "abc"

are exactly the same strings when written in Python source code. If your
strings do not match, it has nothing to do with "rawness".

Peter
 



More information about the Python-list mailing list