V
V
ValeraValera2018-07-16 17:22:42
Regular Expressions
ValeraValera, 2018-07-16 17:22:42

How to add Russian letters to regular expression?

^(?=.*[az])(?=.*[AZ])(?=.*\d)[a-zA-Z\d]{6,}$
- regular expression for validating a password for small and capital letters (English) and numbers
how to fix it so that there are small and capital letters (English or Russian) and numbers

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2018-07-16
@Austin_Powers

Exactly the same as you have already added English letters.
Instead [a-zA-Z], you can use the shortened form [Az]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question