Hi,
I have a Regex to validate password by following conditions:
1. password must be between 8 and 10 characters
2. contain at least one one letter and one digit
3. not contain leading and trailing blanks
But if the first character is numerical, my regex failed, other cases are ok. Can anyone help me out. Thanks a lot!
Here is the Regex i used:
^[^\s].*(?=.{7,10})(?=.*[a-zA-Z])(?=.*\d).*[^\s]$