regex : Extracting parts of a string :-???

From: Date: Sun, 11 Feb 2001 16:21:41 +0000
Subject: regex : Extracting parts of a string :-???
Groups: php.general 
Request: Send a blank email to php-general+get-39127@lists.php.net to get a copy of this message
Hello everyone, I have a string like $thestring = "\"Hello everyone\" bye"; What I want to extract is: Hello everyone. Instead I get: bye. I use this command ereg("([^\"\"]*)$",$thestring,$regs) and echo $regs[1]. How can I extract what's within double quotes? TIA Regards

« previous php.general (#39127) next »