C#正则表达式替换SQL单引号中间的空格
C#正则表达式替换SQL单引号中间的空格
C# Code:
//替换单引号中间的空格
sql = Regex.Replace(sql, "[\'](.*?)[\']", (e) => e.Value.Replace(" ", ""),
RegexOptions.Multiline | RegexOptions.Singleline | RegexOptions.IgnoreCase);
//来源:C/S框架网 | www.csframework.com | QQ:23404761
sql = Regex.Replace(sql, "[\'](.*?)[\']", (e) => e.Value.Replace(" ", ""),
RegexOptions.Multiline | RegexOptions.Singleline | RegexOptions.IgnoreCase);
//来源:C/S框架网 | www.csframework.com | QQ:23404761
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网