in reply to Regex Confusion

Regular expressions are normally used to match patterns but if you just want to remove single characters it is more efficient to use the tr operator:

$string =~ tr/"//d; $string =~ tr/\n//d;