pomsky
pomsky copied to clipboard
Recursion
Using the keyword recursion. For example:
'(' recursion* ')' | [not '()']+
Compiles to
\((?R)*\)|[^()]+?
Which matches any text with balanced parentheses.