string contains and special characters
Ulrich Eckhardt
ulrich.eckhardt at dominolaser.com
Tue Oct 9 10:59:13 EDT 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.
Uli
More information about the Python-list
mailing list