I am working on an expression for a password, where the validation should contain
- must contains letters with numbers or symbols( NOT letters, numbers and symbols)
- Uppercase or Lowercase( NOT a combination of both)
- Min length of password is 8
based on the inputs provided by Mena, i have updated my expression to
String patternChar = "^[a-z&&[^A-Z]]+|[A-Z&&[^a-z]]+$";
String patternNumber = "^[a-zA-Z0-9&&[\\S]]+|[a-zA-Z\\S&&[^0-9]]+$";
- PatternChar works fine for only Upper or Lower Case.
- PatternNumber does work if i combine PatternChar with numbers or symbols.
here symbol means all UTF8
or unicode characters like e.g. £$%^
Thanks for your help.
but has problems.
Regards Ram