1、匹配所有带括号的字符串
string s = "aaaa(bbb)ccc(ddd)eeee";
string pattern = "\(\w+\)";
或者写成
string pattern = @"(w+)";
MatchCollection results = Regex.Matches(s, pattern);
results[0].Value=(bbb)
results[1].Value=(ddd)
测试地址
http://tools.jb51.net/regex/javascript
另一个检测工具