Problem with regex

From: Date: Thu, 13 Jul 2000 21:00:18 +0000
Subject: Problem with regex
Groups: php.general 
Request: Send a blank email to php-general+get-6542@lists.php.net to get a copy of this message
consider the following code: eregi( "<title>.*</title>", $myLine, $titleArray ); echo $titleArray[0]; It will work and display the correct dataif the line looks like this: "<title>Page Title</title>" but not if it looks like this: "<title> Page Title </title>" Why? Is there anything I can do (short of using the preg() functions which I do not have access to) to make it work? Chris

« previous php.general (#6542) next »