kotlin - password validation
I need a password validation regex in kotlin
characters length: with 8 to 16
combining at least two types of alphabet, number, and special characters
"^(((?=.*[a-zA-Z])((?=.*[a-zA-Z])|(?=.*\\d)|(?=.*\\W)))|((?=.*[a-zA-Z])((?=.*\\d)|(?=.*\\W)))|((?=.*\\d)(?=.*\\W))).{8,16}\$"
above regex, "abcdabcd" have to false, but true.
"^(?=.*[0-9a-zA-Z])(?=.
[!@#\$%^&])(?=\\S+\$).{8,16}\$"
The above regex is a combination of two or more letters, including special characters, or upper and lowercase...