Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: regex and WWW::Mechanize parsing a ->content of mechanize object

by c4onastick (Friar)
on Jul 01, 2007 at 02:51 UTC ( #624264=note: print w/ replies, xml ) Need Help??


in reply to regex and WWW::Mechanize parsing a ->content of mechanize object

You can make this a little more specific by using:

m%>\s+(\w+)&#39;s Stats\s+</div>%s; print $1;
This is, of course, under the assumption that every one you want to match is in the form "Name's Stats".


Comment on Re: regex and WWW::Mechanize parsing a ->content of mechanize object
Download Code
Re^2: regex and WWW::Mechanize parsing a ->content of mechanize object
by spx2 (Chaplain) on Jul 01, 2007 at 03:07 UTC

    thank you very much for the answer,but the main problem that the script only works in the testcase and not in a real case with WWW::Mechanize,still remains...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2014-09-20 16:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls