I'd like to get address of certain links with desired text. Let's say I want to get links containing a word "BMW".
The link can only contain a text or a text and an image.
Is there any way how to do that without using regular expressions?
Code:
<a href="http://abc.com/xxxx">Dodge</a> <a href="http://abc.com/a123.php">Used [B]BMW[/B] card</a> <a href="http://xyz.com/ferrari">Brand new Ferraris</a> <a href="http://xyz.com/vjklj"><img src="pic.jpg" />Luxurious [B]BMW[/B]s</a>
Is there any way how to do that without using regular expressions?
Comment