Simple_HTML_Dom is great for grabbing stuff within specific tags, but I'm not sure how to do much of anything beyond the basics when it comes to grabbing text. This is an example of what the code I am scraping from looks like:
<span>
Some code stuff.
</span>
FirstWord: 88
<span>
More code stuff.
</span>
As you can see, FirstWord and 88 are not enclosed in any sort of tag. This makes them hard to grab. Here's the rub, though: FirstWord will always be the same -- only the number changes.
So, my idea is to simply tell Simple_HTML_Dom to grab the numbers that immediately follow FirstWord. Problem is that I have no clue how to do this.
Any help is greatly appreciated.
/FirstWord:\s[0-9]+/