In my locale (et_EE) [a-z] means:
abcdefghijklmnopqrsšz
So, 6 ASCII chars (tuvwxy) and one from Estonian alphabet (ž) are not included. I see a lot modules which are still using regexes like
/\A[0-9A-Z_a-z]+\z/
For me it seems wrong way to define range of ASCII alphanumeric chars and i think it should be replaced with:
/\A\p{PosixAlnum}+\z/
Is the first one still considered idiomatic way? Or accepted solution? Or a bug?
Or has last one some caveats?