string contains and special characters

loial jldunn2000 at gmail.com
Tue Oct 9 10:02:22 EDT 2012


I am trying to match a string that containing the "<" and ">" characters, using the string contains function, but it never seems to find the lines containing the string

e.g if mystring.contains("<TAG>") :

Do I need to escape the characters...and if so how?




More information about the Python-list mailing list