|
|
| Welcome to the Monastery | |
| PerlMonks |
Re: Can this be a 1 line or simpler regex?by I0 (Priest) |
| on Apr 06, 2003 at 05:54 UTC ( #248404=note: print w/ replies, xml ) | Need Help?? |
|
s/([\t\n\r\f])/${{"\t"=>"\\t","\n"=>"\\n","\r"=>"\\r","\f"=>"\\f"}}{$1}/g;
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||