Page 2 of 2

Posted: Fri Oct 13, 2006 10:39 pm
by n00b Saibot
just change the regex...

Code: Select all

#<img[^>]+>#is
this will match the img tags. if you need to replace it with something just feed it to the preg_replace function

Posted: Fri Oct 13, 2006 10:41 pm
by tristanlee85
Well, since I want to remove the images fron the signature, I figure I'd replace it with nothing, like so:

Code: Select all

$user_sig = preg_replace('#<img[^>]+>#is','',$user_sig);
Correct?

Posted: Fri Oct 13, 2006 10:42 pm
by n00b Saibot
just try :P

Posted: Fri Oct 13, 2006 10:46 pm
by tristanlee85
Heh, works perfectly.

Once again, thank you all.