[PHP-WIN] /i modifier with preg_replace From: Matthew (matthew.ralston <email protected>)
Date: 04/03/01

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 <email protected> matthew <email protected> < www.mralston.co.uk />

-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe <email protected> For additional commands, e-mail: php-windows-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>