I'm playing around with websites and regular expressions in C#. I have this situation:
<a href="path/to/image">
<img src="thumbnail"></a>
That outlining is how my application gets the content of a given web site. Tabs and breaklines not the same for each row.
I use gskinner to check the regex (http://gskinner.com/RegExr/) and I have created this regular expression:
(?i)<a([^>]+)>\W.*</a>
Flags: Multiline
Gskinner shows that the pattern is correct. But when I put in c# (regEx.Matches(...)) it can not find the matches anymore.
Does anyone have any clue how to do this?
Thanks