reeksy wrote:Is it not possible to search the file for that instance?
It certainly is possible. Whatever it is, it can go in a string (or an array of strings, one per line). Then you can use any of the [man]string[/man] functions on that string.
It's just a pain because HTML is an ugly thing to dig through with string functions. If you've got the [man]DOM[/man] extension you could attempt to construct a document model and then walking through that. Then you can sit back and hope the layout of the page doesn't change because it would throw all your work out the window.
Typically, these days, if a site's owner wants their material to be available for machine use, they'll also be supplying it in XML or other some other more easily-parsed format.