正则表达式为:(?<=\()\w{2}
如:
string str1 = "发送奥点奥点(66)dasaa213434esdf ";
Regex rex = new Regex(@"(?<=\()\w{2}");
Match m = rex.Match(str1);
Console.WriteLine(m); //m为66
本文介绍了一种使用正则表达式从字符串中提取特定格式数据的方法,通过实例演示了如何匹配并获取指定模式的数据片段。
正则表达式为:(?<=\()\w{2}
如:
string str1 = "发送奥点奥点(66)dasaa213434esdf ";
Regex rex = new Regex(@"(?<=\()\w{2}");
Match m = rex.Match(str1);
Console.WriteLine(m); //m为66
1万+

被折叠的 条评论
为什么被折叠?