Need Regex Help

From: Date: Sun, 19 Aug 2001 02:48:11 +0000
Subject: Need Regex Help
Groups: php.general 
Request: Send a blank email to php-general+get-63317@lists.php.net to get a copy of this message
I'm reading a book and have a little confusion in my mind. Consider the following table. Assume that I grabbed it from another web site using: <? $url = 'http://www.abc123xyz.com'; $lines_array = file($url); $lines_string = implode('', $lines_array); ?> ======================================= <html><body> <table cellspacing="2" cellpadding="2" border="0"> <tr> <td align=center>banana</td> <td align=left>.46</td> <td align=right>.55</td> </tr> <tr> <td align=center>pear</td> <td align=left>.38</td> <td align=right>.51</td> </tr> <tr> <td align=center>apple</td> <td align=left>.59</td> <td align=right>.33</td> </tr> </table> </body></html> ======================================= The fruit lables don't change, but prices change daily. How would I parse JUST the two prices to the right of the word pear into a new html table? How would I parse the word pear AND the two prices to the right into a new html table? I think the answers will help me understand better. Thanks Craig ><> westerman@chanuteks.com

« previous php.general (#63317) next »