I'm not sure where to put the /i.
If I had code like:
$print preg_replace("test", "this is a test", "test TEST tEsT TEst")
where in that code would i put the modifier?
--
Matt
[EMAIL PROTECTED]
[EMAIL PROTECTED]
< www.mralston.co.uk />
""James Moore"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> >
> > Does anyone know how to do a case insensitive str_replace?
> > I don't want to alter the case of the original string (so I can't do a
> > strtolower first).
> >
> > I've seen some functions used with the likes of [^Aa] in them but I'm
not
> > sure how to use this...
> > Anyone got any ideas?
>
> use preg_replace with /i modifier.
>
> James
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]