Re: [PHP] Need Regex Help

2001-08-18 Thread Andrew Libby
I'd take the results of file() and then walk through the array looking for the lines for the various fruit you're concerned with. Then I'd grab the next two lines and process them, with something like: $line = ".46"; ereg('^([^<]+)',$line,$m); echo $m[1] . "\n"; echo $m[2] . "\n"; IMHO, it's

[PHP] Need Regex Help

2001-08-18 Thread Craig Westerman
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: http://www.abc123xyz.com'; $lines_array = file($url); $lines_string = implode('', $lines_array); ?> === banana .46