Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

password regex for html

<input type="text"
       pattern="^(?=.*?[A-Z])(?=(.*[a-z]){1,})(?=(.*[d]){1,})(?=(.*[W]){1,})(?!.*s).{8,}$" />

This regex will enforce these rules:
At least one upper case English letter
At least one lower case English letter
At least one digit
At least one special character
Minimum eight in length
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #password #regex #html
ADD COMMENT
Topic
Name
5+6 =