/// <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); }
时间: 2024-10-18 00:15:20