日期:2014-05-17 浏览次数:20639 次
Regex regx = new Regex("(?=data source).*?(?=password).*?;");
Match match = regx.Match("metadata=res://*/DataModel.csdl
------解决方案--------------------
res://*/DataModel.ssdl
------解决方案--------------------
res://*/DataModel.msl;provider=System.Data.SqlClient;provider connection string="data source=192.168.1.231;initial catalog=student;persist security info=True;user id=sa;password=123456;multipleactiveresultsets=True;App=EntityFramework"");
string value = match.Value;