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
  • 71,850
  • 28
  • 140
  • 203
darko
  • 743
  • 3
  • 9
  • 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
  • 5,920
  • 4
  • 41
  • 56