Re: string contains and special characters

2012-10-09 Thread Ulrich Eckhardt
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("") : I can't locate a 'contains' function anywhere, what type i

Re: string contains and special characters

2012-10-09 Thread loial
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 > mystri

Re: string contains and special characters

2012-10-09 Thread Mark Lawrence
On 09/10/2012 15:23, Dave Angel wrote: On 10/09/2012 10:02 AM, 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("") : Do I need to esca

Re: string contains and special characters

2012-10-09 Thread Jerry Hill
On Tue, Oct 9, 2012 at 10:02 AM, 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("") : > > Do I need to escape the characters..

Re: string contains and special characters

2012-10-09 Thread Dave Angel
On 10/09/2012 10:23 AM, Dave Angel wrote: > On 10/09/2012 10:02 AM, 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("") : >

Re: string contains and special characters

2012-10-09 Thread Dave Angel
On 10/09/2012 10:02 AM, 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("") : > > Do I need to escape the characters...and if so

Re: string contains and special characters

2012-10-09 Thread Agon Hajdari
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("") : > > Do I need to escape the characters...and if

string contains and special characters

2012-10-09 Thread 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("") : Do I need to escape the characters...and if so how? -- http://mail.python.org/mailman/listinf