Re: [PHP-WIN] replacing strings... (hope it isn't too basic...)

2003-07-25 Thread Luis Moreira
inal Message - From: "Bobo Wieland" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 25, 2003 12:21 PM Subject: [PHP-WIN] replacing strings... (hope it isn't too basic...) > Q1 :If I'm for example is going to replace all occurences of "fo

[PHP-WIN] replacing strings... (hope it isn't too basic...)

2003-07-25 Thread Bobo Wieland
Q1 :If I'm for example is going to replace all occurences of "foo" in the following sentence with "bar" in case-insensetiv manner how would I do it? "Foo foo foo Foo fOO fOo" should be replaced with "Bar bar bar Bar bAR bAr"... I guess I would need regular expressions? Right? ---