I'd like to split a String with the following rule : Parse everything between a "( )" parenthesis besides nested parenthesis, meaning:
String s = "(example) (ex) (am (p (k) t) le)"
needs to be parsed into :
am (p (k) t) le
I tried to work with split() and regular expressions but couldn't find the right one.
Thanks in advance:)