Re: Checking if string inside quotes?

2007-05-09 Thread castironpi
t; > > Thanks in advance: > > Michael Yanowitz > > > -Original Message- > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] Behalf > > Of [EMAIL PROTECTED] > > Sent: Wednesday, May 09, 2007 5:12 PM > > To: [EMAIL PROTECTED] > >

Re: Checking if string inside quotes?

2007-05-09 Thread half . italian
string > was already in quotes and if so remove the quotes. But not > sure how to do that? > Or is there an easier way? > > Thanks in advance: > Michael Yanowitz > > -Original Message----- > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf > Of

Re: Checking if string inside quotes?

2007-05-09 Thread castironpi
string > was already in quotes and if so remove the quotes. But not > sure how to do that? > Or is there an easier way? > > Thanks in advance: > Michael Yanowitz > > -Original Message----- > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf > Of

RE: Checking if string inside quotes?

2007-05-09 Thread Michael Yanowitz
age- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 5:12 PM To: python-list@python.org Subject: Re: Checking if string inside quotes? On May 9, 1:39 pm, "Michael Yanowitz" <[EMAIL PROTECTED]> wrote: > Hello: > >

Re: Checking if string inside quotes?

2007-05-09 Thread half . italian
On May 9, 1:39 pm, "Michael Yanowitz" <[EMAIL PROTECTED]> wrote: > Hello: > >If I have a long string (such as a Python file). > I search for a sub-string in that string and find it. > Is there a way to determine if that found sub-string is > inside single-quotes or double-quotes or not inside a