C# 字符串 输出格式 指定间隔 通用性很强

C#winform
string  s =  "FE 68 01 00 1111 11 11 68 1104 35 33B337 7C 16" ;
string  r = Regex.Replace(s,  @"(?<=[0-9A-F]{2})[0-9A-F]{2}" " $0" );
Response.Write(r);

猜你喜欢

转载自www.cnblogs.com/shuaiheng/p/9194532.html