Re: Regular Expression Problem continues
| From: | Sharat Hegde | Date: | Thu, 28 Mar 2002 19:56:19 +0000 |
| Subject: | Re: Regular Expression Problem continues | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90586@lists.php.net to get a copy of this message | ||
The files are hosted on a 3rd party hosted ISP. On my local machine it works fine. While I try and request for a recompile of the system, is there an alternate way out?
By the way, what is the significance of the switch --with-regex=system
Rasmus and Miguel, Thanks for your help.
With Regards,
Sharat
From: Rasmus Lerdorf <rasmus@lerdorf.ca> To: Sharat Hegde <sharat_hegde@hotmail.com> CC: mnc@stoic.net, <php-general@lists.php.net> Subject: Re: [PHP] Regular Expression Problem continues Date: Thu, 28 Mar 2002 11:40:41 -0800 (PST) In your configure flags you have: --with-regex=system Why did you do this? Recompile without that switch and see if things change. -Rasmus On Thu, 28 Mar 2002, Sharat Hegde wrote: 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_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspxFrom: 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 notsomethingelse going on? Can you provide an unadulterated code sample pasted directly from your problem script? miguel On Thu, 28 Mar 2002, Sharat Hegde wrote:problem.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_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpWith Regards, Sharat-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpFrom: 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