Hi all,

I have a CGI script that tries to remove the tags from a string that
represents the content of an HTML file.

There are a number of tags that I would like to keep intact, and I represent
them in the following array:

@INCLUDE_TAGS = ( "I", "BR", "SUP", "FONT", "P" );

However, some of these tags take arguments (FONT and P, for example) and I
cannot seem to get the script to leave these tags intact.

Below is the regular expression that I am using to perform the search and
replace operation:

$html =~ s/<[^>]*[^(@INCLUDE_TAGS.*)]>/ /gi;

I don't know if I've missed something obvious, but if anyone can help me out
that would be wonderful.

Thanks in advance,
Graig


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to