Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Re: hepl with a regex problem

by Nkuvu (Priest)
on Jun 04, 2003 at 23:41 UTC ( #263189=note: print w/replies, xml ) Need Help??

in reply to Re: hepl with a regex problem
in thread hepl with a regex problem

I'm thinking that AnonyMonk was referring to a greedy match. At least, that's how I read it at first.

And if you know that what you're looking for is a number alone, you can use something like m!Volume<br>([\d,]+)</font></td>! for the regex. This will capture numbers that may or may not have a comma in them. It won't match negative numbers, or numbers with decimal points, or fractions, etc. Note that the m at the beginning allows you to use another delimiter instead of /, so you don't have to escape the / characters in the closing HTML tags. Just another way to do it...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (10)
As of 2020-07-10 13:08 GMT
Find Nodes?
    Voting Booth?

    No recent polls found