Re: regular expressions help please

From: Date: Tue, 30 Apr 2002 22:49:45 +0000
Subject: Re: regular expressions help please
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95448@lists.php.net to get a copy of this message
aha ! thats very strange then because mine works at the moment but if I add the /i at the end then it doesn't ! > 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 (#95448) next »