Character ranges are not that intelligent. They are based on ascii codes. Check out Ascii Table. There exist special characters between upper-case A-Z
and lower-case a-z
range, namely:
[
\
]
^
_
`
So, instead of A-z
it should be A-Za-z
.
More Related Contents:
- Is it possible to escape regex metacharacters reliably with sed
- How can I match “anything up until this sequence of characters” in a regular expression?
- bash regex with quotes?
- Regular expression for duplicate words
- Regular expression to match any character being repeated more than 10 times
- Parsing scientific notation sensibly?
- Regex Last occurrence?
- How to wisely combine shingles and edgeNgram to provide flexible full text search?
- Regular expression negative lookahead
- Why is a character class faster than alternation?
- Regex: Remove lines containing “help”, etc
- Mail::RFC822::Address Regex
- Regular Expressions- Match Anything
- How to Use/Enable (RegExp object) Regular Expression using VBA (MACRO) in word
- Remove .php from urls with htaccess
- Does lookbehind work in sed?
- Regex for time in hh:mm am/pm format
- Grammatical inference of regular expressions for given finite list of representative strings?
- Regex get domain name from email
- Regex with replace in Golang
- Regex empty string or email
- Does \w match all alphanumeric characters defined in the Unicode standard?
- Regular Expression to exclude set of Keywords
- Invert match with regexp [duplicate]
- extract number after specific string
- Design DFA accepting binary strings divisible by a number ‘n’
- Regex matching beginning AND end strings
- Regex return file name, remove path and file extension
- How do I turn any regex into an complement of itself without complex hand editing?
- Matching url with array list of words in AngularJS ui-router