Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 pondering the Monastery: (12)
As of 2014-10-30 16:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (208 votes), past polls