#region 获取字符串内提取图片URL字符串 /// <summary> /// 获取字符串内提取图片URL字符串 /// </summary> /// <param name="imageurl"></param> /// <returns></returns> public static string GetImageURL(string imageurl) { string strUrl = Regex.Match(imageurl, @"<img[^<>]*?src[s ]*=[s ]*[""']?[s ]*(?<imgUrl>[^s ""'<>]*)[^<>]*?/?[s ]*>").Groups[1].Value; return strUrl; } #endregion