Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: can split() use a regex?

by davidrw (Prior)
on Jun 17, 2006 at 16:02 UTC ( [id://555989]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      my ($one, $two) = split( /\d+\s+/, $line);
    
  2. or download this
      my ($one, $two) = split( /(\d+\s+)/, $line);
    
  3. or download this
      my ($one, $two) = split /(?<=\d+)\s+/, $line, 2;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-03-29 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found