RE: [PHP] Replacing non exact strings

2002-05-03 Thread Brian Paulson
Julio, Try this $search = Joe Doe; $original = Joe Cougar Doe; $final = bJoe/b Cougar bDoe/b; $terms = explode( ,$search); for($i=0; $icount($terms); $i++) { $original = eregi_replace($terms[$i], b.$terms[$i]./b, $original); } echo $original; Should get you started.

Re: [PHP] Replacing non exact strings

2002-05-03 Thread Stuart Dallas
On 3 May 2002 at 11:36, Julio Nobrega Trabalhando wrote: $searched = Joe Doe; $original = Joe Cougar Doe; $final = bJoe/b Cougar bDoe/b; Any ideas about how can I achieve this result? I am currently using eregi_replace($searched, b$searched/b, $original), so that's why it only accepts

Re: [PHP] Replacing non exact strings

2002-05-03 Thread Julio Nobrega Trabalhando
Thanks Brian, it's working! -- Julio Nobrega. Brian Paulson [EMAIL PROTECTED] wrote in message 005101c1f2af$fa59eb00$89010a0a@bpaulson">news:005101c1f2af$fa59eb00$89010a0a@bpaulson... Julio, Try this -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: