http://qs321.pair.com?node_id=263189


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...