ENG
  • RUS
  • ENG

Setting up regular expressions for passwords.

Last update: 21.09.2023

Frequent requests from customers are the need to limit the password of employees from ... to ....or except for symbols ...

To do this, in the company settings, we prescribe a rule for a possible password (regular expression).

Regular expressions are a tool for searching text strings and checking them for compliance with any pattern, symbol or word. The result of using a regular expression is a subset of data selected according to the logic inherent in the expression.

For example, the expression can be like this:

Regular expression for password:

^(?=.*\d)(?=.*[a-zA-Z])[a-zA-Z0-9]{8,100}$


Error text when processing a regular expression:
Use 8 or more characters: Latin letters (a-z) and at least one digit.


The conditions must be attributed in text format as a hint to the user.

And if, with such a setup, the user enters a password in accordance with this rule, the system will inform him about it and ask him to enter it again.


To add this rule in your company, send us this expression (if possible) or describe the rule to us and we will compile it and connect it for you.

Was this article helpful?