替换图片路径

        /// <summary>
        /// 替换图片路径
        /// </summary>
        /// <param name="strContent"></param>
        /// <returns></returns>
        public string ReplaceImgSrc(string strContent)
        {
            return Regex.Replace(strContent, @"(?<img><img\b[^<>]*?/?[\s\t\r\n]*>)", MatchEvaluatorReplaceImg);
        }

  

posted @ 2015-06-12 14:30  逊老头  阅读(161)  评论(0编辑  收藏  举报