检查密码的正则表达式是什么具有以下条件? [英] What is the regular expression for checking the password is having the following criteria ?

查看:104
本文介绍了检查密码的正则表达式是什么具有以下条件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

复杂密码具有以下要求:

包含以下五种字符类型中的至少三种:

o小写字符

o Upper案例人物

o数字

o标点符号

o特殊字符(例如@#$%^& *()_ + |〜 - = \`{} []:" ;;'<> / etc)

包含至少八(8)个字母数字字符。

解决方案

%^& *()_ + |〜 - = \`{} []:" ;;'<> / etc)

至少包含8个(8个) )字母数字字符。


请看这里:

使用正则表达式和-ASPNET,正则表达式,Validator.aspx政策http://www.aspsnippets.com/Articles/Implement-Password-Policy-using-Regular-Expressions-and-ASPNet-RegularExpression-Validator .aspx [ ^ ]

您可以在源代码中重用给定的正则表达式

A complex password has the following requirements:
Contain at least three of the five following character types:
o Lower case characters
o Upper case characters
o Numbers
o Punctuation
o "Special" characters (e.g. @#$%^&*()_+|~-=\`{}[]:";'<>/ etc)
Contain at least eight (8) alphanumeric characters.

解决方案

%^&*()_+|~-=\`{}[]:";'<>/ etc)
Contain at least eight (8) alphanumeric characters.


Please have a look here:
http://www.aspsnippets.com/Articles/Implement-Password-Policy-using-Regular-Expressions-and-ASPNet-RegularExpression-Validator.aspx[^]
You can reuse the given regular expressions in your source code.


这篇关于检查密码的正则表达式是什么具有以下条件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆