Mark Kelly wrote:
I'm hoping someone can help me extract text between double quotes from a
$regex = 'some magic';
$r = preg_match($regex, $sentence, $phrases);
$sentence = 'Dave said "This is it". "Nope, that is the wrong colour" she
I want $phrases to contain 'This is it' and 'Nope, that is the wrong colour'.
Can anyone help?
$regex = '/"(.*)"/imU';
$r = preg_match_all($regex, $sentence, $phrases);
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php