C# Regex Help - should be an easy one

  • Thread starter Thread starter Oren Liebermann
  • Start date Start date
O

Oren Liebermann

I'm parsing through the HTML for an nba box score looking to pull out
the officials' names, but the regex expression I'm using is pulling
out the officials and all the code after the officials, which I don't
need.

So here's my regex:
"Officials:.*/td>"

and here's the HTML I'm getting back:
"Officials:#24 Mike Callahan, #9 Derrick Stafford,
#54&nbsp;Derrick&nbsp;Collins</td><td
align=\"right\">Attendance:&nbsp;14796</td></tr></table><!-- End Game
Info table --><!-- START Visitor player Stats team table --><table
width.......

This goes on for pages and pages.

I only want from "Officials" to the first "/td>" and I'm pretty sure
it's the * in my regex that's messing it up, but I'm not sure how to
fix it. Any help would be greatly appreciated!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top