1.正则表达式不需要分组的话,使用(?:) 取消分组,分组会占有时间、正则引擎是DFA实现的,分组就相当于压入堆栈 2.vs2008取配置文件App.config中自定义节点内容 ClientSettingsSection nvc = (ClientSettingsSection)ConfigurationManager.GetSection("applicationSettings/CSSP.Properties.Settings"); string dgs = nvc.Settings.Get("CSSP_WebReference_CssService").Value.ValueXml.InnerText.ToString();