正则表达式验证 密码格式

1. 6到20位字符必须包含字母和数字

^(?=.*[0-9])(?=.*[a-zA-Z])([a-zA-Z0-9]{6,20})$

原文地址:https://www.cnblogs.com/mengjianzhou/p/6110495.html