Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Re: hepl with a regex problem

by Nkuvu (Priest)
on Jun 04, 2003 at 23:41 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (7)
As of 2024-04-19 10:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found