xxxxxx(19) ;xxxx(28) ;xxx(35) ;
想要的结果是
19;28;35;
想要的结果是
19;28;35;
解决方案 »
- 谁有像jw_flv_player播放器能播放wmv格式的视频开源播放器??
- 点一个BUTTON打开一个网址怎么搞
- gridview的问题
- DOTNET帮助,在internet开发中查td Object,在Behaviors表格中有attributes和properties,这两个有什么区别?
- 是不是seesion值在打开的新页面里面不能用,有什么办法能让他用吗?100分相送
- sql语句sum问题求教!
- ASP.NET要怎么配置数据连接池?
- .net framework1.1站点问题
- sql 删除数据表中的字段问题
- showModalDialog的问题
- asp.net导出word自定义格式的问题
- ★★★★帮忙解释下这几行话是什么意思?★★★★
aa=aa.replace('x','').replace('(','').replace(')','');
aa=aa。split(new char[]{'(',')'},stringsplitoption.removenullentity)[1]
MatchCollection mc = reg.Matches(yourStr);
foreach (Match m in mc)
{
str+= m.Value + "\n";
}
string test = "x22xxxx(19);xxxx(28);xxx(35);xxx(21;";
Regex reg=new Regex(@"\((\d+)\)");
MatchCollection mm = reg.Matches(test);
string str = string.Empty;
for (int i = 0; i < mm.Count; i++)
{
str += mm[i].Value + ";";
}
str.Replace("(", "").Replace(")", "");
string str = "xxxxxx(19) ;xxxx(28) ;xxx(35) ;"; Regex reg = new Regex(@"(?<=\().*?(?=\))"); foreach (Match m in reg.Matches(str))
Console.WriteLine(m.Value);