62,075
社区成员
发帖
与我相关
我的任务
分享
MatchCollection mc = Regex.Matches(str, @"<img(?:(?!src).)*src=(['""]?)(?<path>.*?)/(?<name>[^/\s'""]*)\1", RegexOptions.IgnoreCase);
foreach (Match m in mc)
{
richTextBox1.Text += m.Groups["path"].Value + "\n";
richTextBox1.Text += m.Groups["name"].Value + "\n";
}