11-06-2008, 03:24 PM
|
#9 (permalink)
|
|
The Acquainted
Join Date: Jan 2008
Posts: 119
Thanks: 21
|
so do you have to traverse through all of the information in the code to get to the spot you want to scrape?
ie... Can I start anywhere with preg_match? What if the <tr> does not have a class or id? Do I start at the top and work down to it?
Quote:
// Perform an expression match
preg_match( "/<tr class=\"alternateRow\">[\s]+<td>([\w\d ,]+)<\/td>[\s]+<td>([\d\"\- ]+)<\/td>[\s]+<td>([\d\"\- ]+)<\/td>/im", $cache, $matches );
|
|
|
|
|