$string = preg_replace('/<img[^>]*>/si', '', $string); "Richard S. Crawford" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... All I need to do is strip out IMG tags from strings; I don't want to strip out all of the HTML, just the IMG tags, so the strip_tags() function won't be adequate.
I've tried eregi_replace("<img[^$]>","",$string); but that doesn't seem to do any good (though the regexp works fine in Perl). Any thoughts? Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]