What characters match the following regex :
^[a-zA-Z]$
Specifically, should characters with accents (eg. á, è, ò) match this regex? Or just 26 lower and upper case alphabets? I have tried to check this in an online regex, and accented characters did not match.
When I tried it out with grep on my Linux (Ubuntu) machine it did match the accented characters.
While rg(ripgrep) did not match it.
I can match accented characters with rg using [A-zÀ-ÿ]
But is there a way to exclude accented characters from matching in grep?
PS: This question talks about how accented chars can be included, not excluded.
