/i modifier with preg_replace

From: Date: Tue, 03 Apr 2001 08:32:54 +0000
Subject: /i modifier with preg_replace
Groups: php.windows 
Request: Send a blank email to php-windows+get-6453@lists.php.net to get a copy of this message
Hello... I'm trying to implement a case insensitive str_replace (bearing in mind that I'll be performing the replace on a paragraph of text so I don't want to convert it all to upper or lower case first). Somebody suggested using the /i modifier with pregreplace but I don't know where to put the modifier... i've put an example bit of code below, can somebody please put the modifier in its rightful place for me? $print preg_replace("test", "this is a test", "test TEST tEsT TEst") -- Matt matthew.ralston@haltoncollege.ac.uk matthew@ralston.net < www.mralston.co.uk />

« previous php.windows (#6453) next »