Using eregi_replace(), is there a way to take out a piece of a sentence - which has spaces - and then return the new sentence?
For example, to return the new sentence: hello I must be going from the original sentence: blah blah blah hello I must be going blah blah. I tried: ................... <? $text="blah blah blah hello I must be going blah blah"; $text= eregi_replace("(hello.)(.going)","$newtext",$text); echo $newtext; ?> ........... Thank you. Tony Ritter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php