RsD0p9BK
5/18/2015 - 6:36 AM

preg_with_quotes.php

// Regex to ignore escaped quotes within quotes
echo preg_replace('/"[^"\\]*(?:\\.[^"\\]*)*"/', 'dog', $string);


// http://stackoverflow.com/questions/5695240/php-regex-to-ignore-escaped-quotes-within-quotes