替换图片路径
/// <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); }