Regular Expression Problem continues

From: Date: Thu, 28 Mar 2002 10:33:03 +0000
Subject: Regular Expression Problem continues
Groups: php.general 
Request: Send a blank email to php-general+get-90499@lists.php.net to get a copy of this message
Hello, I am still having problems with the regular expressions. Looks like there has been a change in the way they are handled between PHP3 and PHP4, since the code worked with PHP3 !! I need to search for all words having alphanumberic characters as well as _ (underscore) which are prefixed and suffixed with __ (2 underscores). The regular expression I am using is eregi("__([a-z0-9_]+)__", "Hello __WO_RD__ Test", $Matches) I am expecting the above code to return __WO_RD__ as the match, but it does not seem to work. Can someone help out. With Regards, Sharat _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com

« previous php.general (#90499) next »