-2

i need some help to write correct regex validation. I want password with no spaces, min. 6 symbols, doesn't matter numbers or letters or symbols. Alphabet a-zA-Z and а-яА-Я(RU). How i can do that?

George Heints
  • 1,303
  • 3
  • 20
  • 37

1 Answers1

0
"^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d]{6,}$"

You can take a look at this link

sazid008
  • 175
  • 2
  • 14