I need to extract content of unbalanced paren construction. In manual for PCRE i found solution for matching balanced parens.
<\[ ( (?>[^(<\[|\]>)]+) | (?R) )* \]>
For my test
<[<[ab<[cd]>]><[ef]>
It extracts
0.0: <[ab<[cd]>]>
0.1: <[ef]>
But i want to extract same content without outermost parens:
0.0: ab<[cd]>
0.1: ef
Could anybody point a solution?