![]() |
|
Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Can this be a 1 line or simpler regex?by IndyZ (Friar) |
on Apr 05, 2003 at 07:28 UTC ( #248268=note: print w/replies, xml ) | Need Help?? |
This works: s/([\t\n\r\f])/%m=("\t","\\t","\n","\\n","\r","\\r","\f","\\f");$m{$1}/ge;
but it just feels dirty.
In Section
Seekers of Perl Wisdom
|
|