Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: regexp help

by si_lence (Deacon)
on Dec 15, 2011 at 14:20 UTC ( #943741=note: print w/ replies, xml ) Need Help??

in reply to regexp help

I am not sure what the variation in your data can be. For the example given, the following should to the trick.

my $input = '((113000.00 Nos.) + (250000.00 Nos.) ++ (1) )'; $input =~ s/\(|\)| Nos\.//g; $input =~ s/\+\+/+/g;
That said, in the long run it probaly will help you to get familiar with regular expressions by reading something like perlre

Comment on Re: regexp help
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2015-11-28 17:29 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 (743 votes), past polls