PHP Screen scraping...
PHP Screen scraping...
Out of context: Reply #10
- Started
- Last post
- 12 Responses
- jasonistaken0
preg_match('/STARTTEXT(.*?)ENDTE... $text, $matches);
Although, your best bet, if you are scraping a site that has relatively valid xhtml is to load it into a SimpleXML parser, then you can traverse the DOM, or use Xpath.