Example: Using a regular expression for "Provide Information"

When you configure a Provide Information action and assign a password service attribute to a page, you can validate user input by matching the provided password to a regular expression pattern. This forces the user to provide input in a specific format only, 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