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

Re^5: Regular expression help

by pvaldes (Chaplain)
on Mar 12, 2013 at 09:53 UTC ( #1022954=note: print w/ replies, xml ) Need Help??


in reply to Re^4: Regular expression help
in thread Regular expression help

while(<DATA>){ next if /^\s*stephen\s/; if (~m/^(\w+?)\s+(\w+?)\s+\((\w+?)\)\s+\((\w+?)\),\s+.+$/){ print "user: $1 version: $3 server: $4"; } }

(More complicated and less elegant that the use of split in any case IMHO...)


Comment on Re^5: Regular expression help
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2014-09-22 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls