Re: regular expressions help please

From: Date: Tue, 30 Apr 2002 22:35:24 +0000
Subject: Re: regular expressions help please
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95446@lists.php.net to get a copy of this message
On Wed, 1 May 2002, John Fishworld wrote: > Thanks after playing about with that I've got the following which does seem > to work ! > > $imode_code[$i] = eregi_replace("(src=)(\")([a-z0-9_\/-]+\.gif)(\")", > "\\1\\2$path/\\3\\2", $imode_code[$i]); > > Very very very slowly getting the hang of regexs ! > > What does your /i do at the end ??? Makes it case-insensitive, so "gif" and "GIF" are treated identically. miguel

« previous php.general (#95446) next »