Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
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??


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
Node Status?
node history
Node Type: note [id://248404]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2016-09-27 08:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (499 votes). Check out past polls.