Avatar ·

Recursion in regular expressions

📁 python, пример, ии

Hello.
There is a regular expression (for example)

 / \ (([^) (]+ | (? R))+ \) /X    

(? R) means a recursive link to the regular expression itself, where you can find a regular express processor supporting such recursion for Java or Python?
Standard java.util.Regex and the Python regex do not seem to support this mechanism.
Regular expression is taken.