摘要:
1、单个字符分隔用split截取 string str = "GT123_1"; string[] strArray = str.Split('_'); //输出:sArray[0]="GT123" // sArray[1]="1" 2、利用多个字符来分隔字符串 string str = "GTAZ 阅读全文
posted @ 2021-10-18 15:07
fulllove
阅读(673)
评论(0)
推荐(0)
摘要:
校验数字的表达式 //数字 Regex reg = new Regex(@"^[0-9]*$"); //n位的数字 Regex reg = new Regex(@"^\d{n}$"); //至少n位的数字 Regex reg = new Regex(@"^\d{n,}$"); //m-n位的数字 R 阅读全文
posted @ 2021-10-18 14:33
fulllove
阅读(65)
评论(0)
推荐(0)

浙公网安备 33010602011771号