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/ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]