![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
正则
kennygu
这个作者很懒,什么都没留下…
展开
-
c#从html中获取图片地址
using System.Text.RegularExpressions;string ohtml = this.TextBox1.Text; System.Text.RegularExpressions.MatchCollection m; //提取字符串的图片 m = Regex.Matche原创 2010-05-19 10:56:00 · 1363 阅读 · 0 评论 -
正则表达式,去除所有HTML标签
protected string str = "sdasasdsddsdsaaassss<img src='http://www.baidu.com/img/baidu_logo.gif' width='100' height='50' alt=''> 说是道 "; protected void Page_Load(object sender, EventArgs e) {原创 2012-01-10 11:21:15 · 57929 阅读 · 2 评论