How to handle HTML using regular expressions in C #?
For example, this HTML
<s2> t1 </s2> <img src='1.gif' /> <span> span1 <span/>
I'm trying to get
1. <s2> 2. t1 3. </s2> 4. <img src='1.gif' /> 5. <span> 6. span1 7. <span/>
How to do this using regular expressions in C #?
In my case, HTML input is not well-formed XML, like XHTML. Therefore, I cannot use XML parsers for this.
source share