$text='console.warn("You've specified a { units } setting but no { dimension }, so the units will be ignored."); let variable=132;';
preg_match_all('#console.warn\("(.*?)"\)#', $text, $match);
$newStr='';
foreach($match as $k=>$v){

$newStr=str_ireplace($v,'" "',$text);

};
echo $newStr;