asp.net正则表达式替换字符串例子
摘要:
Regex r = new Regex(@"(<img[\w\W].+?>)");//匹配<img>的正则表达式/**/string html=@"<td align=left valign=top> <img width=32 height=132 src="110000.files/image003.gif" ></td>";html = r.Replace(html, "");/*则进行替换结果:<td align=left valign=to 阅读全文
posted @ 2011-04-28 17:11 汤尼 阅读(497) 评论(0) 推荐(0)

浙公网安备 33010602011771号