Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Can this be a 1 line or simpler regex?

by I0 (Priest)
on Apr 06, 2003 at 05:54 UTC ( [id://248404]=note: print w/replies, xml ) Need Help??


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;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://248404]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-22 16:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found