Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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"

Comment on Re: extracting numbers with a regex

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2015-11-30 20:07 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (779 votes), past polls