Re: case insensitive replace

From: Date: Sat, 06 Oct 2001 20:54:38 +0000
Subject: Re: case insensitive replace
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-70252@lists.php.net to get a copy of this message
hmm try eregi_replace or preg_replace with the i modifier (IE: ereg_replace('preg here'i)); :-) Tada! THE i in both function means insensitive as in case insensitive :-) Mielz "Gregor Jaksa" <gre-gor@delphi-si.com> schreef in bericht news:20011006153822.84079.qmail@pb1.pair.com... > Hello, > I'm trying replace $field with "[<a > href="something">$field</a>]" in > $string, but here's the problem. > If $field is for example SQL then str_replace replaces only "SQL" not "Sql" > or "sql". I tried with preg_replace but i cant find any good solution. Can > anyone help me ? > > thx > >

« previous php.general (#70252) next »