Recursion in regular expressions
📁 Advanced Python Topics, example, AI
Hello.
There is a regular expression (for example)
/ \\ (([^) (]+ | (? R))+ \\) /XPre>(? R) means a recursive link to the regular expression itself. Is there a regular expression engine supporting such recursion for Java or Python?
Standardjava.util.Regexand Python'sregexmodule do not seem to support this mechanism.
The regular expression is taken.
No answers yet.
Log in to leave an answer
Blogs
Top Mistakes of Beginner C++ Developers: How to Avoid Them