62,243
社区成员




string pattern = "^(?=\w{6,16}$)(?=.*\d)(?=.*_)";
string text1 = "1234a_";
//不符合要求的密码
if (Regex.Match(text1, pattern).Success != true)
{
}
//符合要求
else
{
}
.[6-16]
var strEmail = '3453@4f';
alert(strEmail);
if (strEmail.search(/(?=^.{6,16}$)(?=(.*\d){1,})(?=(.*\W){1,})(?=(.*[a-zA-Z]){1,}).*/) != -1)
alert('true');
else
alert('false');