随笔分类 -  正则表达式

正则快速入门
摘要:快速入门及在线检测工具http://www.jb51.net/tools/zhengze.htm 阅读全文

posted @ 2012-10-25 10:52 imihiro 阅读(156) 评论(0) 推荐(0)

C# 正则表达式
摘要:(1)清除掉字符串中的所有<img/>标签 FrmUniscopeProfile frm = new FrmUniscopeProfile(); Regex regex = new Regex("<img .*/>"); //去除xml中的<img> MatchCollection matches = regex.Matches(htmlWin[0]); for (int i = 0; i <= matches.Count - 1; i++) { html... 阅读全文

posted @ 2012-06-12 17:11 imihiro 阅读(256) 评论(0) 推荐(0)