Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by Aristotle (Chancellor)
on Apr 06, 2003 at 00:02 UTC ( #248357=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $_ = "one\ttwo\nthree four five\r";
    
    ...
        . ($3 && '\r' || '')
        . ($4 && '\f' || '')
    /ge;
    
  2. or download this
    $_ = "one\ttwo\nthree four five\r";
    
    ...
        $4 ? '\f' :
        ''
    /ge;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2023-10-04 13:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?