I need to parse my HTML page to replace some links, this is the form of a link <a href="/{localLink:1144}" title="Bas-rhin">Mauris nec</a>
. The problem is that my regex expression doesn't end properly, I think it's because of the ".
This is my Regex expression :
Regex r= new Regex("<a href=\"(/{localLink:)(.*)}\" title=\"(.*)\">(.*)</a>");
That regex doesn't end after each link, and the third group doesn't contain the title property but almost all the html until the last of my html.
I tested it with this site :
http://derekslager.com/blog/posts/2007/09/a-better-dotnet-regular-expression-tester.ashx
So, why doesn't the third group end directly after Bas-Rhin"
?