How can I extract all the gameID #'s from http://espn.go.com/nhl/schedule http://sports.espn.go.com/nhl/preview?gameId=301106012 http://sports.espn.go.com/nhl/preview?gameId=301106028 http://sports.espn.go.com/nhl/preview?gameId=301106008 ETC... I need it to print out just the number after the =
You need to parse this page: http://espn.go.com/nhl/schedule & it is possible by using any programming language. If you are using PHP then from following link you can take help http://simplehtmldom.sourceforge.net/ Thanks, Jimmy
<? $data = file_get_contents("http://espn.go.com/nhl/schedule"); preg_match_all("/gameid=(.*)\"/Ui", $data, $regs); print_r($regs[1]); ?> PHP: