111,126
社区成员
发帖
与我相关
我的任务
分享(?<=\>)\d+(?=\<) string result = string.Empty;
string str = "<td bgColor=#fffff8>1 </td>";
Regex r = new Regex( @"(?<=\>)\d+|\w*(?=\<)" );
foreach( Match item in r.Matches( str ) ) {
result += item.Value + Environment.NewLine;
}
MessageBox.Show( result );