JS - 正则表达式字符串中必须含有数字,字母,下划线(强密码)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_37506861/article/details/88056451

使用正则表达式中的正向预查

/(?=.*[A-Za-z])(?=.*[\d])(?=.*_)/

猜你喜欢

转载自blog.csdn.net/qq_37506861/article/details/88056451