Regex Mixtake
| From: | Manolet Gmail | Date: | Sat, 03 Feb 2007 17:36:59 +0000 |
| Subject: | Regex Mixtake | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-248245@lists.php.net to get a copy of this message | ||
Hi, i have a problem using regex, i want to get all the text between " "
so i try this...
$subject = 'menu "Archer?",-,"Chief?",L_Menu2,"Big Mouth?",L_Menu3;';
if (ereg('"([^"]*)"', $subject, $regs)) {
print_r($regs);
}
but just return me:
Array
(
[0] => "Archer?"
[1] => Archer?
)
not return me Chief and Big Mounth
what is the problem?