匹配数字~ <td bgColor=#fffff8>1</td>,匹配1,正则怎么写啊?\d连8也匹配进去了!~(^@^)~ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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 ); Winform如何播放MP3文件呢 WCF服务的方法名固定,但是地址是动态的。怎么动态调用WCF服务? 求助!Foreach循环问题 如何取消calendar控件的选中状态 web程序的公共函数程序文件应该放在哪? C#分层的问题? 关于socket通信问题,为什么这段程序会有问题 winForm窗体控件循环问题:窗体上有5个label:label1....label5用循环语句让他们显示不同的数字! 各位大哥,帮我看看把。如何设计向导那样的系列窗口?? 遍历文件夹问题 怎样将.NET中的日期存入ORACLE中? 新给菜鸟的`冒泡排序法!!
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 );