string contains and special characters
ulrich.eckhardt at dominolaser.com
Tue Oct 9 16:59:13 CEST 2012
Am 09.10.2012 16:02, schrieb loial:
> 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>") :
I can't locate a 'contains' function anywhere, what type is 'mystring'?
> Do I need to escape the characters...and if so how?
Maybe. Please provide some example code that unexpectedly fails.
More information about the Python-list