Re: stripping quotes within an image tag

From: Date: Wed, 31 Jul 2002 12:02:59 +0000
Subject: Re: stripping quotes within an image tag
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-110507@lists.php.net to get a copy of this message
sick dude exactly what i needed , i have been doing php for a good while now but i have never hot my head around pregs :| "Lallous" <phplist@lgwm.org> wrote in message news:20020731113255.56061.qmail@pb1.pair.com... > <? > echo preg_replace('/(<img.+?src=)"([^"]+)"([^>]*>)/i', > '\1\2\3', '<IMG > height=44 alt=hspace=0 src="blah.jpg" width=148 border=0>'); > ?> > > Elias, > > "Electroteque" <daniel@electroteque.org> wrote in message > news:20020731112838.47299.qmail@pb1.pair.com... > > hi how is it possible to strip quotes from an image tag ? > > i need > > <IMG height=44 alt=hspace=0 src="blah.jpg" width=148 border=0> > > > > to look like > > <IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0> > > > > > >

« previous php.general (#110507) next »