View Single Post
Old 11-06-2008, 03:24 PM   #9 (permalink)
buildakicker
The Acquainted
 
buildakicker's Avatar
 
Join Date: Jan 2008
Posts: 119
Thanks: 21
buildakicker is on a distinguished road
Default

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 );
__________________
SkiLeases.com
buildakicker is offline  
Reply With Quote