C#填写银行卡号每隔4位数字加一个空格

Regex.Replace(dic["BankCardNo"].ToString(), @"(\d{4}(?!$))", "$1 ")

猜你喜欢

转载自www.cnblogs.com/weimingxin/p/8952342.html