Shame on me! It turns out the simplest Perlier version actually works!
It may not be official w3.org syntax, and doesn't work in XPather, but it does in HTML::TreeBuilder::XPath.
So in case other people search for this... to find attribute values macthing a regular expression using HTML::TreeBuilder::XPath :
$tree->findnodes( '//element[ @attribute =~ /regex/ ]' );
In reply to Re: HTML::TreeBuilder::XPath and regular expressions
by rduke15
in thread HTML::TreeBuilder::XPath and regular expressions
by rduke15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |