There is a regular expression (for example)
/ \( ( [^)(]+ | (?R) )+ \) /x
(? R) means a recursive reference to the regular expression itself, where can I find a regular expression processor that supports such recursions for Java or Python?
java.util.regex and Python
regex seem to have no support for this mechanism.
Regular expression is taken here .