2010年7月24日

.net中利用正则表达式去除html格式

摘要: using System.Text.RegularExpressions;//需要引用 // 利用正则表达式去掉"<"和">"之间的内容 private string StripHT(string strHtml) { Regex regex=new Regex("<.+?>",RegexOptions.IgnoreCase); string strOutput=regex.Replace(strHtml,""); return strOutput; } 阅读全文

posted @ 2010-07-24 17:25 java课程设计 阅读(219) 评论(0) 推荐(0)

导航