in reply to Can this be a 1 line or simpler regex?
%& = ("\t" => '\t', "\n" => '\n', "\r" => '\r', "\f" => '\f'); s/[\t\n\r\f]/$&{$&}/g; [download]
I wouldn't call it simpler though.
Abigail