Is the regular expression [a-Z] valid and if yes then is it the same as [a-zA-Z]?

前端 未结 7 1443
伪装坚强ぢ
伪装坚强ぢ 2020-11-27 07:53

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.

E

7条回答
  •  [愿得一人]
    2020-11-27 08:23

    No, it's not valid, probably because the ASCII values are not consecutive from z to A.

提交回复
热议问题