Hi,
The expression would be something like this:
\<(.+?)\>
Group 1 will be the contents of the html tag without the brackets.
e.g.
// C#
string _InputText = "example, <TR VALIGN=TOP>, I'd like to replace";
Regex MyRegex = new Regex(@"\<(.+?)\>", RegexOptions.IgnoreCase);
string nohtmltags = MyRegex.Replace(_InputText, " ");
Another one would be
\<([^>]+)\>
explanation:
Match '<'
Match one or more characters but dont match '>'
Match '>'
--
Ross Donald
RAD Software
http://www.radsoftware.com.au
"powerranger" <ta*****@yahoo.com> wrote in message
news:13**************************@posting.google.c om...
I'd like to replace any html tags containing "< >" with a space. For
example, <TR VALIGN=TOP>, I'd like to replace that with a space. Is
there a way to do this? Thanks.