I have a long c# string of HTML code and I want to specifically extract bullet points "<ul><li></li></ul>
".
Say I have the following HTML string.
var html = "<div class=ClassC441AA82DA8C5C23878D8>Here is a text that should be ignored.</div>This text should be ignored too<br><ul><li>* Need this one</li><li>Another bullet point I need</li><li>A bulletpoint again that I want</li><li>And this is the last bullet I want</li></ul><div>Ignore this line and text</div><p>Ignore this as well.</p>Text not important."
I need everything between the '<ul>
' to '</ul>
' tags. The '<ul>
' tag can be excluded.
Now regular expression is not my strongest side, but if that can be used I need some help. My code is in c#.