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