Re: Using eregi_replace()

From: Date: Fri, 01 Aug 2003 15:25:07 +0000
Subject: Re: Using eregi_replace()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-157959@lists.php.net to get a copy of this message
Messju Mohr" <messju@lammfellpuschen.de writes: > you mean > $newtext= ereg_replace(".*?(hello.*going).*","\\1",$text); > ?? .................................. Thank you but I get: Warning: REG_BADRPT: in c:\apache\htdocs\string.php on line 3 Using: ..................... <? $text="blah blah blah hello I must be going blah blah"; $newtext= eregi_replace(".*?(hello.*going).*","\\1",$text); echo $newtext; ?> ................ Regards, TR

« previous php.general (#157959) next »