110,499
社区成员
发帖
与我相关
我的任务
分享
string str = "number(12,3) not null,--";
Regex reg = new Regex(@"(?<![0-9]),(?![0-9])");
string res = reg.Replace(str, " , ");
Console.WriteLine(res);
string s = @"需要将number(12,3),或将 number(12,3) not null,--";
string result = Regex.Replace(s, @"(?<![\d ]),(?!\d)", " ,");