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

Replies are listed 'Best First'.
Re^2: regex and WWW::Mechanize parsing a ->content of mechanize object
by spx2 (Deacon) 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...