RegEx For Strong Password

后端 未结 4 1130
情书的邮戳
情书的邮戳 2020-12-18 00:35

I have the following password requirements:

1) Should be 6-15 characters in length
2) Should have atleast one lowercase character
3) Should have atleast one

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-18 01:18

    1 => /^.{6,15}$/
    2 => /[a-z]/
    3 => /[A-Z]/
    4 => /\d/
    5 => /[#{special_chars_for_regex}]/
    6 => /^\S*$/
    

提交回复
热议问题