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]
> >
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
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
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:
>
>
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