Recursion in regular expressions
📁 python, пример, ии
Hello.
There is a regular expression (for example)
/ \\( ( [^)(]+ | (?R) )+ \\) /x(?R) means a recursive reference to the regular expression itself. Where can I find a regex engine that supports such recursion for Java or Python?
The standard java.util.regex and Python's regex apparently do not support this mechanism.
The regular expression is taken from .
For development, a one-line solution works for me. All sent emails will simply be output to the console (stdout).
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'If you still need to configure email to work via server sending. Start the Python mail server
python -m smtpd -n -c DebuggingServer localhost:1025In the application settings file
EMAIL_HOST = 'localhost'EMAIL_PORT = 1025That's it :)
More details:
Log in to leave an answer
Blogs