其实我是想用for循环将一个字符串数组的所有中文括号中的字符提取出来存到另一个数组,当然,最重要的是标题的问题,有请大佬表演
解决方案 »
- C# DTE解析一个*.cpp文件 高分求解啊~
- 新手求助!combobox 根据ValueMember值定位索引
- 求购一个即时通讯的例子
- winform的程序.用到打印.打印的时候会出现.正在打印第一页.然后第二页的.最后自动消失的.对话框
- SmtpMail发送错误,Could not access 'CDO Message' object
- 求获取excel文件里的数据第一行,第一行是字段,代码从第二行读取的
- wpf窗体按钮取数据库数据,添加配置文件后获取不了连接字符串后窗体启动失败
- wpf现在发展的怎么样了?
- 程序初学者的问题?
- mvc ajax.BeginForm
- .net mvc 登录问题
- 找.NET母版页模板
string ch="fdsfdsa(fds)dsfds";
MatchesSection(ch,false);
public static List<string> MatchesSection(string ch,bool isInclude)
{
string strRegex = isInclude? @"(\([^\)]*\))": @"(?<=\()[^\)]+";//
MatchCollection Matches = Regex.Matches(ch, strRegex, RegexOptions.IgnoreCase);
List<string> str = new List<string>();
foreach (Match NextMatch in Matches)
{
str.Add(NextMatch.Value);
} return str;
}https://blog.csdn.net/u013010499/article/details/103250879