PDA

Click to See Complete Forum and Search --> : Case Insensitive Replace?


The Hobo
Sep 14th, 2002, 02:33 PM
Is there a way to do a replace that's not dependant upon the case?

ie: str_replace('dOg', 'frog', 'dog is cool');

cpradio
Sep 14th, 2002, 08:21 PM
preg_replace("/\dOg/isu",$string...

The Hobo
Sep 14th, 2002, 09:37 PM
:o I didn't even think of that.

Thanks! :D