Re: regular expressions help please

From: Date: Wed, 01 May 2002 00:11:20 +0000
Subject: Re: regular expressions help please
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95456@lists.php.net to get a copy of this message
I wasn't paying that much attention. The /i is a preg thing. It's the same as changing from ereg to eregi. miguel On Wed, 1 May 2002, John Fishworld wrote: > 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 (#95456) next »