Re: Can this be a 1 line or simpler regex?
by
I0
on
Apr 06, 2003 at 05:54 UTC
(
replies
)
http://qs321.pair.com?node_id=248404
in reply to
Can this be a 1 line or simpler regex?
s/([\t\n\r\f])/${{"\t"=>"\\t","\n"=>"\\n","\r"=>"\\r","\f"=>"\\f"}}{$1}/g;
In Section
Seekers of Perl Wisdom