求匹配<和>之间所有内容的正则表达式?

解决方案 »

  1.   

    使用后出错
    提示:
    正在分析“<\n)+?>”- ) 过多。
    参数名: <\n)+?>
      

  2.   

    /<(\S+)>/也不行
    像<table width="98%"  border="0" cellspacing="0" cellpadding="0">这个就无法完成,里面带"就不行了
      

  3.   

    mText = System.Text.RegularExpressions.Regex.Replace(mText,"<(.|\n)+?>","");
      

  4.   

    mText = System.Text.RegularExpressions.Regex.Replace(mText,"<(.|\n)+?>","");
    这个把<和>两个符号也包含再内了
    我只需要匹配之间内容
      

  5.   

    /<\s*(\S+)(\s[^>]*)?>[\s\S]*<\s*\/\1\s*>/匹配完整的标记/<\s*(\S+)(\s[^>]*)?>/
    匹配<table width="98%"  border="0" cellspacing="0" cellpadding="0">
      

  6.   

    >>>mText = System.Text.RegularExpressions.Regex.Replace(mText,"<(.|\n)+?>","");
    >>>这个把<和>两个符号也包含再内了
    >>>我只需要匹配之间内容==============================================================!......这样不就可以了吗
    mText = System.Text.RegularExpressions.Regex.Replace(mText,"<(.|\n)+?>","<>");