Re: [PHP] extracting quoted text in string

2004-06-01 Thread John W. Holmes
From: "Chris Hayes" <[EMAIL PROTECTED]> > >I would like to extract the quoted text from a string > >for example : the translation for beautiful is "beau" and wonderful is > >"formidable" > >I need to get 'beau' and 'formidable' strings into an array. > > > >Any idea?? > >I can go with strpos and

Re: [PHP] extracting quoted text in string

2004-06-01 Thread Jason Wong
On Tuesday 01 June 2004 20:43, Vincent DUPONT wrote: > I would like to extract the quoted text from a string > for example : the translation for beautiful is "beau" and wonderful is > "formidable" I need to get 'beau' and 'formidable' strings into an array. preg_match_all('|.*"(.*)".*|U', ...);

Re: [PHP] extracting quoted text in string

2004-06-01 Thread Chris Hayes
At 14:43 1-6-04, you wrote: Hi, I would like to extract the quoted text from a string for example : the translation for beautiful is "beau" and wonderful is "formidable" I need to get 'beau' and 'formidable' strings into an array. Any idea?? I can go with strpos and substrings, but maybe there is

[PHP] extracting quoted text in string

2004-06-01 Thread Vincent DUPONT
Hi, I would like to extract the quoted text from a string for example : the translation for beautiful is "beau" and wonderful is "formidable" I need to get 'beau' and 'formidable' strings into an array. Any idea?? I can go with strpos and substrings, but maybe there is something more convenient?