C#判断输入的字符串中是否含有大写字母,小写字母,数字,字符
using System;
using System.Text.RegularExpressions;
System.Text.RegularExpressions.Regex.IsMatch(argValue, “[A-Z]”)
System.Text.RegularExpressions.Regex.IsMatch(argValue, “[0-9]”)
System.Text.RegularExpressions.Regex.IsMatch(argValue, “[a-z]”)
System.Text.RegularExpressions.Regex.IsMatch(argValue, “[\u0000-\u00FF]”)
返回True:有匹配项;False:没有匹配项
本文介绍如何使用C#通过正则表达式检查字符串中是否包含大写字母、小写字母、数字及特殊字符。

被折叠的 条评论
为什么被折叠?



