用户密码正则表达式

正则表达式 匹配 不匹配
^[a-zA-Z]\w{5,17}$
以字母开头,长度在6~18之间,只能包含字符、数字和下划线
 

正则表达式 匹配 不匹配
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).{4,8}$
1agdA*$# | 1agdA*$# | 1agdA*$#
wyrn%@*&$# f | mbndkfh782 | BNfhjdhfjd&*)%#$)

 

正则表达式 匹配 不匹配
(?=^.{6,255}$)((?=.*\d)(?=.*[A-Z])(?=.*[a-z])|(?=.*\d)(?=.*[^A-Za-z0-9])(?=.*[a-z])|(?=.*[^A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z])|(?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9]))^.*
Password="{sas001}Zm9v" | Password="{sas001}czFhY2tlcnM=" | Password="s1ack
{}xyz | Password=

正则表达式 匹配 不匹配
[^A-Za-z0-9]
!@#$ | %^&* | '><?.,"
ABC123abc | abc123ABC | abc0132ABC

正则表达式 匹配 不匹配
Password="(\{.+\}[0-9a-zA-Z]+[=]*|[0-9a-zA-Z]+)"
!@#$ | %^&* | '><?.,"
ABC123abc | abc123ABC | abc0132ABC

正则表达式 匹配 不匹配
(?:Provider="??(?<Provider>[^;\n]+)"??[;\n"]??|Data\sSource=(?<DataSource>[^;\n]+)[;\n"]??|Initial\sCatalog=(?<InitialCatalog>[^;\n]+)[;\n"]??|User\sID=(?<UserID>[^;\n]+)[;\n"]??|Password="??(?<Password>[^;\n]+)"??[;\n"]??|Integrated\sSecurity=(?<IntegratedSecurity>[^;\n]+)[;\n]??|Connection\sTimeOut=(?<ConnectionTimeOut>[^;\n]+)[;\n"]??)+$
Provider="SQLOLEDB.1";Data Source=(local);Initial Catalog=master;User ID=sa;Password=&quot
Any non SQL Connection String

正则表达式 匹配 不匹配
(?=^.{6,255}$)((?=.*\d)(?=.*[A-Z])(?=.*[a-z])|(?=.*\d)(?=.*[^A-Za-z0-9])(?=.*[a-z])|(?=.*[^A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z])|(?=.*\d)(?=.*[A-Z])(?=.*[^A-Za-z0-9]))^.*
Password=&quot;{sas001}Zm9v&quot; | Password=&quot;{sas001}czFhY2tlcnM=&quot; | Password=&quot;s1ack
{}xyz | Password=

正则表达式 匹配 不匹配
(?-i)(?=^.{8,}$)((?!.*\s)(?=.*[A-Z])(?=.*[a-z]))(?=(1)(?=.*\d)|.*[^A-Za-z0-9])^.*$
a3dAbed. | P@ssword1 | aB_1bbbb | myPassw0rd!
password | password12 | password__12 | p@ssw0rd

 

你可能感兴趣的:(正则表达式)