Given the following HTML...
<table>
<tr>
<td><strong>Name 1</strong></td>
<td>Info and ignore <a href="/gohere"/>this</a></td>
<td><a href="MySpecialAction?field=&list=10000">Edit</a></td>
</tr>
<tr>
<td><strong>Name 2</strong></td>
<td>Info and ignore <a href="/gohere"/>this</a></td>
<td><a href="MySpecialAction?field=&list=10001">Edit</a></td>
</tr>
</table>
Is it possible to write a single C# Regex that'll grab the 'name' (found withing td/strong) and 'listid' (found on with href containing MySpecialAction)?
I've got it grabbing the name (probably not efficient, but I was hoping I could write one expression that, given above, would have 2 matches and each match would have two groups (named 'name' and 'id').
<strong\b[^>]*>(.*?)<\/strong>
Match1.name=Name 1
Match1.id=10000
Match2.name=Name 2
Match2.id=10001
Thanks in advance.