Web::Scraper resp. the underlying HTML::Selector::XPath doesn't understand XPath regular expressions - they came in with XPath version 2.0 which it doesn't support. The correct syntax for a contains() query would be:
:) FWIW/AFAIK http://www.w3.org/TR/xpath/#function-contains doesn't take a regex, it only takes strings, but I could be reading that wrong
OTOH, perl regex are supported HTML::TreeBuilder::XPath and regular expressions
In reply to Re^2: web::scraper and regex
by Anonymous Monk
in thread web::scraper and regex
by Trace On
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |