Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: extraction using regular expression

by JavaFan (Canon)
on Aug 08, 2011 at 12:55 UTC ( [id://919209]=note: print w/replies, xml ) Need Help??


in reply to extraction using regular expression

Untested:
($number_newbie_needs) = "|M| (avp-code = 268)(flags = 64)] = XXXX" =~ + /\] = ([0-9]+)/;
I'm assuming your numbers are non-negative integers in base ten.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-26 02:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found