I want to find the following tag in a html.
<a href="http://www.google.com/AAA" class="link">AAA</a>
I know I can use a selector like a[href^=http://www.google.com/] or a[class=link].
But how can I combine this two conditions?
Or is there a better way to do this? Like regex? and how?
Thanks!
Just combine them in a single CSS selector.
or
Considering regex makes no sense with such a world class HTML parser.