I have an input which can accept all alphabetical characters [a-zA-Z] (lower case AND upper case). I have to attach a validator to this input to test if all characters have same case or not.
For example :
- ABCD is valid
- abcd is valid
- AbCD is invalid
- aBcd is invalid
Is there a way to do that with a regex ? Or should I use a custom function to do that ?