标签:
//取图片
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]", "");
标签:
原文地址:http://www.cnblogs.com/pengfeiwang/p/4353953.html