Re: How can we get to the end of a quote inside a string

2008-09-02 Thread Paul McGuire
On Aug 31, 9:29 am, [EMAIL PROTECTED] wrote: > Hi all, >     Suppose I have a string which contains quotes inside quotes - > single and double quotes interchangeably - >  s = "a1' b1 " c1' d1 ' c2" b2 'a2" >      I need to start at b1 and end at b2 - i.e. I have to parse the > single quote strings

Re: How can we get to the end of a quote inside a string

2008-09-02 Thread Antoon Pardon
On 2008-08-31, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi all, > Suppose I have a string which contains quotes inside quotes - > single and double quotes interchangeably - > s = "a1' b1 " c1' d1 ' c2" b2 'a2" > I need to start at b1 and end at b2 - i.e. I have to parse the > single

Re: How can we get to the end of a quote inside a string

2008-08-31 Thread Wojtek Walczak
On Sun, 31 Aug 2008 07:29:26 -0700 (PDT), [EMAIL PROTECTED] wrote: > Suppose I have a string which contains quotes inside quotes - > single and double quotes interchangeably - > s = "a1' b1 " c1' d1 ' c2" b2 'a2" >>> s = "a1' b1 " c1' d1 ' c2" b2 'a2" File "", line 1 s = "a1' b1 " c1'

How can we get to the end of a quote inside a string

2008-08-31 Thread rajmohan . h
Hi all, Suppose I have a string which contains quotes inside quotes - single and double quotes interchangeably - s = "a1' b1 " c1' d1 ' c2" b2 'a2" I need to start at b1 and end at b2 - i.e. I have to parse the single quote strings from inside s. Is there an existing string quote pa