Example regular expression "Password Reset" functionality

When you configure the password reset functionality, at Setup > Login Page Services > Password Reset, you can configure a password complexity policy. This ensures that passwords provided by your users meet the complexity requirements of your organization, for example a password that matches the password complexity rules as determined by Microsoft Active Directory.

You can split complex rules in multiple rules, to make it easier to configure the desired policy. For example:

Regular expression

Password complexity hint

^(?=.*[`~!@#$%^&*()_+{}|\][":;\'?><,./])

Specify one special character

^(?=.{8,12}$)

Specify 8 to 12 characters

^(?=.*\d)

Specify one numeric digit

^(?=.*[a-z])

Specify one lower case character

^(?=.*[A-Z])

Specify one upper case character

See also