Index: common_functions.php =================================================================== --- common_functions.php (revision 9890) +++ common_functions.php (working copy) @@ -2945,7 +2945,7 @@ } else { - if (strpos($line, "{QUESTION_CODE}") !== false) $line=str_replace("{QUESTION_CODE}", '' , $line); + if (strpos($line, "{QUESTION_CODE}") !== false) $line=preg_replace("/{QUESTION_CODE}:?/", '', $line); }; if (strpos($line, "{ANSWER}") !== false) $line=str_replace("{ANSWER}", $answer, $line);