<(\S*?)[^>]*>.*?</\1>|<.*? />

解决方案 »

  1.   

    思路:去掉HTML标示符#Perl可以直接用在JavaScript中.
    s/<[^>]*>//ig;
      

  2.   

    复制到文本文件中,用Notepad++打开,在其中进行“替换”操作,使用正则表达式(regex).在查找条件中使用以下字符串<[^>]*>替换的字符串为空。
      

  3.   

                textBox2.Clear();            MatchCollection mc = Regex.Matches(textBox1.Text,@"(?<=>).*?(?=<)",RegexOptions.Singleline);
                string strNote = string.Empty;
                for (int i=0; i < mc.Count; i++)
                    strNote += mc[i].Value;
                textBox2.Text = strNote;