$str = '\\\\$hello \\\"world';
$str = preg_replace("/\\\*\$/","\$",$str);
$str = preg_replace("/\\\*\"/","\"",$str);
print $str;
output :
$hello "world$
but what i expect is \$hello \"world
any problem with my regular expression?
preg_replace with backslash, dollar sign and double quote
Moderator: General Moderators