正则验证字母、数字、特殊字符三种以上组合,必须包含特殊字符
var pwd="123@aaa";
pwd.match(/^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9]).{8,20}$/)
文本框密码复杂度
<input type="password" class="form-control input-sm input-inline" id="Password" name="Password" required="true" minlength="8" maxlength="30" pattern="^(?=.*[0-9]){1,20}(?=.*[a-zA-Z]){1,20}(?=.*[^a-zA-Z0-9]).{8,30}$" autocomplete="off"/>
<span class="help-inline" style="color: #999;">密码应为8-30位到且必须包含字母、数字、特殊字符。</span>