I’m trying to have my console application return me all of these values in a html webpage:
<img border="0" alt="img.jpg" title="img.jpg" src="/_layouts/images/icjpg.gif" />
However I’m only interested in the title="img.jpg".
I’ve seen that Regular expressions can be used to filter these, however I don’t see how I filter the rest away and only keep title="img.jpg" or the value in the title="THIS"
Any help would be appreciated.
I’ve seen this cheatlist for regex
Better solution is to use HtmlAgilityPack to parse HTML.
http://htmlagilitypack.codeplex.com/
Example [only img tags with border = “0”]
This LINQ code return titles for all img tags.