About Including Unicode Characters in Regular Expressions
When including Unicode characters in a regular-expression pattern, pass the re.UNICODE
flag to it:
1 2 | import re currency_re = re.compile(r'[$€¥£₨]', re.UNICODE) |
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django App for You
Django GDPR Cookie Consent app
For Django websites that use cookies.
Django App for You