grabbing information from websites

From: Date: Tue, 28 Sep 2004 07:44:46 +0000
Subject: grabbing information from websites
Groups: php.general 
Request: Send a blank email to php-general+get-198046@lists.php.net to get a copy of this message
hi everyone, im fairly new to php scripting and was having trouble grabing information from a website. i have been able to grab information that is in amongst other text (for example, the word firemaking below) ------- <td><a href="hiscoreuser.cgi?username=champinoman&category=12" class=c>Firemaking</a></td> <td align="right">7,386</td><td align="right"> 61 </td><td align="right"> 333,575 </td></tr> ------- but the number i want to grab is the 61. its on its own line which i think is the reason im having trouble. i have been using this: eregi ("username=champinoman&category=13.*align=\"right\">(.*)</td>",$line,$out) what am i doing wrong? have i posted enough information. thank you for the help. p.s. try and keep the answers fairly straight forward as i am new to this

« previous php.general (#198046) next »