I am trying to get the values within parenthesis in a given expression,
Example :
((1 or 2) and (3 and 4))
Output should be like this :
1 => 1 or 2
2 => 3 and 4
3 => 1 or 2 and 3 and 4
Please can anyone help me to get regexp to get the above result ?