I'm decent at PHP(far from an expert) but a pure novice when it comes to regexp and scraping. I wanted to do a little bit of scraping to help with some research and to educate myself, but I've ran into a problem. I want to extract prize from the following part of a page:
<th valign="top"> Prize pool:
</th>
<td> $75,000
</td></tr>
Needless to say, the prize pool value will change. I want to get the prize, and only the prize from this part (in this example the script should print out $75,000).
This is what I have so far:
preg_match('/Prize pool:\n<\/th>\n<td>(.*)/i', $file_string, $prize);
However, this prints out:
Prize pool:
</th>
<td> $75,000