Is the regular expression [a-Z] valid and if yes then is it the same as [a-zA-Z]?
Please note that in [a-Z] the a
is lowercase and the Z is uppercase.
Edit:
I received some answers specifiying that while [a-Z] is not valid then [A-z] is valid (but won't be the same as [a-zA-Z]) and this is really what I was looking for. Since I wanted to know in general if it's possible to replace [a-zA-Z] with a more compact version.
Thanks for all who contributed to the answer.