How do I parse HTML using regular expressions in C#?
For example, given HTML code
t1 sp
Regular expressions are a very poor way to parse HTML. If you can guarantee that your input will be well-formed XML (i.e. XHTML), you can use XmlReader to read the elements and then print them out however you like.