ereg and first occurence

From: Date: Fri, 29 Jun 2001 09:02:45 +0000
Subject: ereg and first occurence
Groups: php.db 
Request: Send a blank email to php-db+get-9968@lists.php.net to get a copy of this message
Hi all, I would like to extract a piece from an html file. But when I try the ereg function like this it ends up pulling EVERYTHING from the first occurence of "<FONT face=Verdana>" all the way to the end of the file. eregi("<FONT face=Verdana>(.*)</FONT>", $string, $output); for example: any thoughts on how I could extract 'NAME' from the following and not CITY? <FONT face=Verdana>NAME</FONT> <FONT face=Arial>CITY</FONT> TIA olinux __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/

« previous php.db (#9968) next »