Thus, when matching python regular expressions, we have the value \ w and others affected by the re.LOCALE flag:
\ w
If the LOCALE and UNICODE flags are not specified, any alphanumeric and underscore characters match; this is equivalent to set [a-zA-Z0-9_]. Using LOCALE, it will match the set [0-9_] plus any characters are defined as alphanumeric for the current locale.
So, we want to find out which characters are defined as alphanumeric for a given language - let's say we made "locale -a", and we have a list of locales, and we want to find information for one of the listed locales on the system. Any way to quickly find information: a piece of code on a python or a single-line file, a shell command, or possibly reference material.
source share