参考:
实际:
- At least 8 characters long;
- At most 20 characters long;
- One lowercase / one uppercase, one number and one special character;
- No whitespaces.
'^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[@$!%*?&^#~])([a-zA-Z0-9@$!%*?&^#~]{8,20})$'
2023-10-27 10:43:04
参考:
实际:
'^(?=.*[0-9])(?=.*[a-zA-Z])(?=.*[@$!%*?&^#~])([a-zA-Z0-9@$!%*?&^#~]{8,20})$'
下一篇:SQL文中取两个字段的最小值