private function escapeOtherCharactersRegex($line)
{
$regExs = array('/^[0-9]+(?=\\)|\\.)/');
foreach ($regExs as $i) {
if (preg_match($i, $line, $match)) {
// Matched an escapable character, adding a backslash on the string before the offending character
$line = substr_replace($line, '\\', strlen($match[0]), 0);
}
}
return $line;
}