I need a regex replace to escape the two single quotes after the @ sign.
If there is only one quote, do not replace.
$q = "INSERT INTO tablename(fields.....) VALUES('Y','Area of Study',10,1,'onChange@loadDegLevs(); log_fill('school');');"
$qNew = some_regex_function($q);
$qCorrect = "INSERT INTO tablename(fields.....) VALUES('Y','Area of Study',10,1,'onChange@loadDegLevs(); log_fill(\'school\');');";
echo $qNew."<hr>";
echo $qCorrect."<hr>";