backslash plague

Luis P. Mendes luisXX_lupe2XX at netvisaoXX.pt
Fri Oct 22 15:17:57 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi,

I've already read many pages on this but I'm not able to separate the
string 'R0\1.2646\1.2649\D' in four elements, using the \ as the separator.

a='R0\1.2644\1.2344\D'
re.sub(r'\'','ff',a)  does nothing
and why must I write two '' after the \?  If I hadn't used r I would
understand...

how should I do it?

Luis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBeVzlHn4UHCY8rB8RAqa7AJoDbHIXje4yP/pTZpOH0ZVe1MGqwwCfadOa
T8GTyeJU6Jve1405Xa9cuus=
=P+kP
-----END PGP SIGNATURE-----



More information about the Python-list mailing list