I have a string having this form :
<div class="c1">text1</div></br>
<div class="c2">text2</div></br>
<div class="c3">text3</div></br>
I want to create a NameValueCollection with c# and regular expression like this
{ ("c1","text1"),("c2","text2"),("c3","text3") }.
Right now I can get only the "text" like this
Match match = Regex.Match(inputString, "[^<>]+(?=[<])");
Can someone help me to get both the class
and the innertext
?
Thanks