Hello,
I was wondering if it was possible in Pilot Script to make a kind of recursive regular expression to get the content within parenthesis
At the moment I have that:
str := "( v1 + v2 ) * ( v3 + ( v4 - v5 ) )";
prop := rmatch(str2, '\(([^\)]+)\)','gm');
Which give me
( v1 + v2 )
( v3 + ( v4 - v5 )
But what I'd like:
( v1 + v2 )
( v3 + ( v4 - v5 ))
( v4 - v5 )
Thanks for your help
Florent