日期:2014-05-17 浏览次数:20633 次
string source = "回复 @acol:呵呵回复 @admin:哈哈";
Regex reg = new Regex(@"(?is)(?<=@).*?(?=:)");
MatchCollection mc = reg.Matches(source);
foreach (Match m in mc)
{
MessageBox.Show(m.Value);
}