PyDocs

Nav

Text Processing Services

LOCALE

re

data
Make \w, \W, \b, \B and case-insensitive matching dependent on the current locale. This flag can be used only with bytes patterns.
Changed in 3.6, 3.7
  • 3.6: LOCALE can be used only with bytes patterns and is not compatible with ASCII.
  • 3.7: Compiled regular expression objects with the LOCALE flag no longer depend on the locale at compile time. Only the locale at matching time affects the result of matching.
0 Examples
No examples for re/LOCALE.
See Also
No see-alsos for re/LOCALE
0 Notes
No notes for LOCALE