当前位置:网站首页>关于正则表达式匹配密码问题
关于正则表达式匹配密码问题
2022-04-22 10:40:00 【我叫RT】
问题:https://ask.csdn.net/questions/7697522?spm=1005.2025.3001.5141&weChatOA=

解答
第一问:8-32个字符,至少2种字符组合,不含空格(大写字母、小写字母、数字和标点符号,支持的标点符号包括-!@#$^&+.)
^(?![\d]+$)(?![a-z]+$)(?![A-Z]+$)(?![!#$%^&*]+$)[\da-zA-Z-!@#$^&+.]{8,32}$
解析:

测试:

第二问:10-32个字符,至少3种字符组合,不含空格(大写字母、小写字母、数字和标点符号,支持的标点符号包括-!@#$^&+.)
^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z-!@#$^&+.]+$)(?![a-z0-9]+$)(?![a-z-!@#$^&+.]+$)(?![0-9-!@#$^&+.]+$)[a-zA-Z0-9-!@#$^&+.]{10,32}
解析:

测试:

第三问:12-32个字符,至少4种字符组合,不含空格(大写字母、小写字母、数字和标点符号,支持的标点符号包括-!@#$^&*+.)
^(?![a-zA-Z0-9]+$)(?![a-zA-Z-!@#$^&*+.]+$)(?![a-z0-9-!@#$^&*+.]+$)(?![0-9A-Z-!@#$^&*+.]+$)[a-zA-Z0-9-!@#$^&*+.]{12,32}
解析:

测试:

版权声明
本文为[我叫RT]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_43919932/article/details/124335511
边栏推荐
- 基于容器的PaaS混合云的几种形式
- pytorch语义分割-全卷积网络
- 【uvm】 raise_objection之前不能加入消耗仿真时间的语句
- vmware虚拟机下载并安装教程
- Right click menu of cesium map (cesium chapter. 72)
- Pytorch semantic segmentation total convolution network
- MySQL最新版8.0.21安装配置教程~
- Query of SQL Server database
- Addition, deletion, modification and query of MySQL advanced table
- Secure remote access + secure file transfer + terminal simulation + Remote Management - Shanghai daoning united with Van Dyke to bring reliable and easy to configure software to IT industry personnel
猜你喜欢

A simple PLC motion control project

MySQL最新版8.0.21安装配置教程~

进入机器人无人机领域,你会遇到哪些常见难题?

OneFlow学习笔记:从Functor到OpExprInterpreter

斜率优化DP

Right click menu of cesium map (cesium chapter. 72)

Ffmpeg filtergraph adds both zoom and OSD filters

【uvm】 raise_ Statements that consume simulation time cannot be added before object

MySQL latest version 8.0.21 installation and configuration tutorial~

绿色节能建筑已是大势所趋
随机推荐
来文章啦~分享压缩和解压文件【在线网站】
dnspy 修改 伊格利亚战记 军队维护费和英雄维护系数
*CTF 2022 Reverse Writeup
Matlab to solve the problem of repeated activation license LIC file
【FAQ】HMS Core推送服务与本地创建通知消息如何相互覆盖?
Query process of 004-mysql
【SQL server速成之路】数据库的查询
TC397 EVADC
【设计必用!】网页设计常用色彩搭配表 《配色表》
003-MySQL索引
斜率优化DP
Analysis and interpretation of the current situation and challenges faced by enterprise operation and maintenance in the digital era
使用 Bitnami PostgreSQL Docker 镜像快速设置流复制集群
【leetcode】94. Middle order traversal of binary tree
pytorch语义分割-全卷积网络
The wrong statistics of the table causes the optimizer to select the wrong execution plan
在互联网+的背景下,企业如何创新客户服务?
Grpc experience of multilingual communication foundation
Query of SQL Server database
进入机器人无人机领域,你会遇到哪些常见难题?