Re: Regular Expression Problem continues
| From: | Sharat Hegde | Date: | Thu, 28 Mar 2002 19:41:47 +0000 |
| Subject: | Re: Regular Expression Problem continues | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90582@lists.php.net to get a copy of this message | ||
Yes....there may be something else going wrong. The source code of the test file I have is:
<?php
if (eregi("__([a-z0-9_]+)__", "Hello __WO_RD__ Test", $Matches))
print "Match Found with " . $Matches[1] . "<br>";
else
print "Match Not Found<br>";
?>
The source is on my server in a test directory at http://www.byronholidays.com/inikatest/testereg.php3 or http://www.byronholidays.com/inikatest/testereg.php
To check the PHP version on the server, you can run
http://www.byronholidays.com/inikatest/checkenv.php3
Regards,
Sharat
From: Miguel Cruz <mnc@stoic.net> To: Sharat Hegde <sharat_hegde@hotmail.com> CC: php-general@lists.php.net Subject: Re: [PHP] Regular Expression Problem continues Date: Thu, 28 Mar 2002 12:51:44 -0600 (CST) Works for me in 4.1.1 (and 4.1.2) too. Are you sure there's not something else going on? Can you provide an unadulterated code sample pasted directly from your problem script? miguel On Thu, 28 Mar 2002, Sharat Hegde wrote: The code worked fine in PHP Version 3.x It does not work with PHP Version 4.1.1. That is where I have a problem. With Regards, Sharat_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.From: Rasmus Lerdorf <rasmus@lerdorf.ca> To: Sharat Hegde <sharat_hegde@hotmail.com> CC: php-general@lists.php.net Subject: Re: [PHP] Regular Expression Problem continues Date: Thu, 28 Mar 2002 02:33:16 -0800 (PST) This code works fine: eregi("__([a-z0-9_]+)__", "Hello __WO_RD__ Test", $Matches); echo $Matches[1]; produces: WO_RD-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php