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 > > >From: Rasmus Lerdorf <[EMAIL PROTECTED]> > >To: Sharat Hegde <[EMAIL PROTECTED]> > >CC: [EMAIL PROTECTED] > >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; > > > >produces: > > > >WO_RD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php