%& = ("\t" => '\t', "\n" => '\n', "\r" => '\r', "\f" => '\f'); s/[\t\n\r\f]/$&{$&}/g;
I wouldn't call it simpler though.
Abigail
In reply to Re: Can this be a 1 line or simpler regex?
by Abigail-II
in thread Can this be a 1 line or simpler regex?
by smackdab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |