0

i have a long string(html), and i want to grab each value that is between < td> < /td>, example, i need the strings "avatr","lionking" :

<td>avatar</td>  <td> lionking</td> and so on....
cuongle
  • 74,024
  • 28
  • 151
  • 206
darko
  • 773
  • 4
  • 10
  • 18

1 Answers1

3

Because you are parsing HTML (a context-free language), you should not use regular expressions. For details, see this post.

Fortunately, .NET has a great library available for parsing HTML called the HTML Agility Pack

Community
  • 1
  • 1
Hut8
  • 6,080
  • 4
  • 42
  • 59