RE: [PHP] ereg

From: Date: Fri, 11 Jan 2002 07:56:34 +0000
Subject: RE: [PHP] ereg
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80171@lists.php.net to get a copy of this message
.*? is a Perl'ism and only supported by the preg* functions. Use preg_match() instead of ereg() and it will work. -Rasmus On Fri, 11 Jan 2002, Martin Towell wrote: > what about ? > ereg("<!--start-->(.*?)<!--stop-->", $lineofhtml, $output); > > -----Original Message----- > From: Kunal Jhunjhunwala [mailto:kunal@getmonked.net] > Sent: Friday, January 11, 2002 3:05 PM > To: Jimmy > Cc: php-list > Subject: Re: [PHP] ereg > > > Nopes, dint work > Regards, > Kunal Jhunjhunwala > ----- Original Message ----- > From: "Jimmy" <jimmy@spacedisk.com> > To: "Kunal Jhunjhunwala" <kunal@getmonked.net> > Cc: "php-list" <php-general@lists.php.net> > Sent: Friday, January 11, 2002 9:30 AM > Subject: Re: [PHP] ereg > > > > Hi Kunal, > > > > > ereg("<!--start-->(.*)<!--stop-->", $lineofhtml, $output); > > > > ereg("<!--start-->([^<!--stop-->]*)<!--stop-->", $lineofhtml, > > $output); > > > > -- > > Jimmy > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > It's not what you have in your life that counts, but who you have in your > life > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#80171) next »