I have the following string from a form...
Opera \"adds cross-platform hardware\" \"kicks butt\" -hippies
In general I\'ve simpl
try this without using regex, a rough code
$string='Opera "adds cross-platform hardware" "kicks butt" -hippies';
$g=explodeMe($string);
echo "";
print_r($g);
echo "
";
function explodeMe($string){
$k=explode('"',$string);
foreach ($k as $key => $link)
{
if ($k[$key] == ' ')
{
unset($k[$key]);
}
}
return array_values($k);
}
?>