111,120
社区成员
发帖
与我相关
我的任务
分享
string s = "181936";
s = string.Join(" ", System.Text.RegularExpressions.Regex.Split(s, "(?<=\\G.{2})(?!$)"));
string s = "abcdefgh123456";
string r = Regex.Replace(s, @"(?<=.{2}).{2}", " $0");
Console.Write(r);