数字字母字符:[-\da-zA-Z`=\\
;',./~!@#$%^&*()_+|{}:<>?]*((\d+[a-zA-Z]+[-`=\\
;',./~!@#$%^&*()_+|{}:<>?]+)|(\d+[-`=\\
;',./~!@#$%^&*()_+|{}:<>?]+[a-zA-Z]+)|([a-zA-Z]+\d+[-`=\\
;',./~!@#$%^&*()_+|{}:<>?]+)|([a-zA-Z]+[-`=\\
;',./~!@#$%^&*()_+|{}:<>?]+\d+)|([-`=\\
;',./~!@#$%^&*()_+|{}:<>?]+\d+[a-zA-Z]+)|([-`=\\
;',./~!@#$%^&*()_+|{}:<>?]+[a-zA-Z]+\d+))[-\da-zA-Z`=\\
;',./~!@#$%^&*()_+|{}:<>?]*
纯数字:^\d+$
纯字母:^[a-zA-Z]+$
纯特殊字符:^[@#$%^&]+$ ps:特殊字符看你定义的标准是什么
字母+数字:^(?!\d+$)(?![a-zA-Z]+$)[a-zA-Z\d]+$
字母+特殊字符:^(?![a-zA-Z]+$)(?![@#$%^&]+$)[a-zA-Z@#$%^&]+$
数字+特殊字符:^(?!\d+)(?![@#$%^&]+$)[\d@#$%^&]+$
字母+数字+特殊字符:^(?!\d+$)(?![a-zA-Z]+$)(?![@#$%^&]+$)[\da-zA-Z@#$%^&]+$
必须包含字母+字符+数字[-\da-zA-Z`=\\
;',./~!@#$%^&*()_+|{}:<>?]*((\d+[a-zA-Z]+[-`=\\
;',./~!@#$%^&*()_+|{}:<>?]+)|(\d+[-`=\\
;',./~!@#$%^&*()_+|{}:<>?]+[a-zA-Z]+)|([a-zA-Z]+\d+[-`=\\
;',./~!@#$%^&*()_+|{}:<>?]+)|([a-zA-Z]+[-`=\\
;',./~!@#$%^&*()_+|{}:<>?]+\d+)|([-`=\\
;',./~!@#$%^&*()_+|{}:<>?]+\d+[a-zA-Z]+)|([-`=\\
;',./~!@#$%^&*()_+|{}:<>?]+[a-zA-Z]+\d+))[-\da-zA-Z`=\\
;',./~!@#$%^&*()_+|{}:<>?]*
数字+字母+字符 或 字母+字符 或 数字+字母 或 数字+字符6-20^((?!\d+$)(?![a-zA-Z]+$)[a-zA-Z\d@#$%^&_+].{5,19})+$
(数字&&字母)|| 字符
^(?!\d+$)(?![a-zA-Z]+$)(?![a-zA-Z-`=\\
;',./~!@#$%^&*()_+|{}:"<>?]+$)(?![0-9-`=\\
;',./~!@#$%^&*()_+|{}:"<>?]+$)
转:http://www.ibcibc.com/thread-3823-1-1.html
网友评论