Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: extracting numbers with a regex

by belg4mit (Prior)
on Dec 05, 2001 at 08:36 UTC ( #129525=note: print w/replies, xml ) Need Help??


in reply to extracting numbers with a regex

Please see Regexp::Common/Regexp::Common. This will help you from reinventing the wheel, and allow you to capture a wider array of numbers.

Also I see no < or > in your code. So it is difficult to give any further advice...

--
perl -p -e "s/(?:\w);([st])/'\$1/mg"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://129525]
help
Chatterbox?
[marto]: hmm, verify httpscert, hosted on IIS, created on $client Windows PKI infrastructure from perl on an old Solaris box
[marto]: I really hate our clients network/infrastruc ture :P

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2017-10-20 11:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (261 votes). Check out past polls.

    Notices?