Last Updated: February 25, 2016
·
691
· jasonyost

JavaScript Regex to validate a minimum of 8 characters and a special character

/(?=^.{8,32}$)(?=(?:.*?\d){1})(?=.*[a-z])(?=(?:.*?[!@#$%*()_+^&}{:;?.]){1})(?!.*\s)[0-9a-zA-Z!@#$%*()_+^&]*$/