To do it reliably use something like HTML::Parser. You can come up with a very simple regex to take care of the simple cases:
eg. $html =~ s!<font.*?>.*?</font>!!igm; But you will run into problems very soon with nested tags etc... On Thu, 2003-01-23 at 12:28, Johnstone, Colin wrote: > Gidday all, > > When using our CMS (Interwoven Teamsite) I want to remove from any textarea any html >tags that I don't want content contributors to use. On in particular is the font tag. >Can one use a regex to remove these? > > I guess Im looking for a regex to remove anything between the font tags e.g ><font>and </font>. Of course their could be anynumber of attributes in the openning >font tag. > > Any help appreciated > Thanking you in anticipation > > Colin Johnstone > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]