hmm sorry it didnt seem to work , it  did then i gave it more than an img
tag in a string and now it doesnt
"Lallous" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> <?
> echo preg_replace('/(<img.+?src=)"([^"]+)"([^>]*>)/i', '\1\2\3', '<IMG
> height=44 alt=hspace=0 src="blah.jpg" width=148 border=0>');
> ?>
>
> Elias,
>
> "Electroteque" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > 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>
> >
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to