110,538
社区成员
发帖
与我相关
我的任务
分享
string result = Regex.Match(yourStr,@"(?s)(?<=test111)((?!TOTOEL:3).)+").Value;
string s = @"test111
ID name IP Adress
1 AA 26 8
2 BBB 4 10
3 CCC 8 78
4 DDD 9 5
TOTOEL:3";
Match match = Regex.Match(s, @"(?s)(?:(?:\S+\s+){3}\S+\r\n)+");
Response.Write(match.Value);