Is there a way to prevent PHP automatically escapes " in a preg_replace with eval modifier. That is, if I do this:
preg_replace("/(.+)/e", "print('\1')", 'he says, "ah."');
PHP prints:
he says, \"ah.\"
Note that PHP seems to be only escaping ", not ', $, |, etc. I know this is done for convenience or something. But I have to preg_replace it again to change \" back to ".