Messju Mohr" <[EMAIL PROTECTED] 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php