string contains and special characters
loial
jldunn2000 at gmail.com
Tue Oct 9 11:09:30 EDT 2012
On Tuesday, 9 October 2012 15:19:33 UTC+1, Agon Hajdari wrote:
> On 10/09/2012 04:02 PM, loial wrote: > 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? > if '<TAG>' in yourstring: # your code -- Agon Hajdari
That worked...thanks
More information about the Python-list
mailing list