On Wed, 20 Mar 2002, Martin Towell wrote:
> use ereg_ireplace() or preg_ireplace() (the latter I'm not sure exists,
> but the former function does)

Close - it's eregi_replace().

To use preg_replace case-insensitively, just toss an 'i' at the end of 
your pattern. Instead of:

   preg_replace('/abc/', 'def', $x);

use

   preg_replace('/abc/i', 'def', $x);

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to