去除img标签

protected string removeHtml(string HTMLStr)
    {
        return Regex.Replace(HTMLStr, @"<IMG.*?src=(['""]?)(?<url>[^'"" ]+)(?=\1)[^>]*>", delegate(Match m) { return ""; });
    }
posted @ 2011-03-04 13:27  红鲤鱼与驴与绿鲤鱼  阅读(315)  评论(0编辑  收藏  举报