//取图片
MatchCollection matchs = Regex.Matches(AskText,@"<img\s[^> ]*src=([""‘]*)(?<src>[^‘""]*)\1[^>]*>", RegexOptions.IgnoreCase);
List<string> PicArray=new List<string>();
foreach (Match m in matchs)
{
PicArray.Add(m.Groups["src"].Value);
}
//取汉字
ListAskText = Regex.Replace(AskText, @"[^\u4e00-\u9fa5]", "");
时间: 2024-10-13 13:39:35