Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Need help with Regex

by JavaFan (Canon)
on Nov 11, 2008 at 19:27 UTC ( [id://722953]=note: print w/replies, xml ) Need Help??


in reply to Need help with Regex

print $1 if /1000\s+([0-9]+)/;
Be careful, it might grab an unintended number if there's another 1000 preceeding the 1000 you intend. But the regexp above grabs the "number after '1000'".

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-25 08:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found