解决方案 »
- 注册表到底重要在哪里?我自己经常改!
- C#如何编写这个关闭的功能
- 这个程序Main中的lock干什么用?和另外一个线程的lock有什么关联?
- 为什么sock.EndReceive(ar)的时候就出错,是不是windows服务socket使用有什么特别的要求(附代码)。
- 在WebFrom中能否取得客户端的cpu和内存?
- 需要条码字体(鸡毛)
- C#异步委托如何手工结束那个分线程?急!!!!!!!!!!!!!!!
- .net pet shop
- System.Web求救!!!
- .Net VS Java
- 这个泛型 List<T>的正确的写法是什么呢?
- C#如何解决带透明度画笔的“青蛙卵”现象,速度仍然流畅?
MatchCollection matches = Regex.Matches(s, @"(?<=百位排序.*?<tr class=tdr>.*?)\d+(?=.*?</table>.*?十位排序)");
foreach (Match match in matches)
Console.WriteLine(match.Value);
Console.ReadKey();
string tempStr = File.ReadAllText(@"C:\Documents and Settings\Administrator\桌面\Test.txt", Encoding.GetEncoding("GB2312"));//读取tx
string pattern = @"(?i)(?<=<tr[^>]*?class=(['""]?)tdr[^>]*?>((?!</tr>).)*)\d+";
string result = string.Join("",Regex.Matches(tempStr, pattern).Cast<Match>().Select(a => a.Value).ToArray());
//1240765389