$string = 'Ms. Kane, who was elected attorney general last year and has been mentioned as a possible future candidate for governor, struck a political note in her brief announcement to an audience that cheered and applauded her decision.
“I looked at it this way, the governor’s going to be O.K.,” she said. She wondered, she added, who would represent “the Daves and Robbies, who represents the Emilys and Amys?”
“As attorney general,” she said, “I choose you.”';
// Normalize quotes
$search = array("\xe2\x80\x9c", "\xe2\x80\x9d", "\xe2\x80\x98", "\xe2\x80\x99");
$replace = array('"', '"', "'", "'");
$newstring = str_replace($search, $replace, $string);
// Extract text
$regex = "/\"(.*)\"/U";
preg_match_all ($regex, $newstring, $output);
if(isset($output[1])) {
print_r($output[1]);
} else {
echo $newstring;
}
Should give
Array
(
[0] => I looked at it this way, the governor's going to be O.K.,
[1] => the Daves and Robbies, who represents the Emilys and Amys?
[2] => As attorney general,
[3] => I choose you.
)