UPDATE: There was a big mistake in the above expression. Unfortunately .TEXT (trying to be helpful) munged the code I posted and uppercased some characters. I’m using FireFox to post so that I don’t get the helpful text editor. Also, the above didn’t take into account multi-line html tags. That’s been corrected now. You’ll have to use the SingleLine RegexOption for it to work.
I just love regular expressions. I mean look at the sample below.
What’s not to like?
Ok I admit, I was a bit intimidated by regular expressions when I first started off as a developer. All I...