<?php $string = '(2+3-4*2(1+1-2)+(2+2)-3+4+2-5*4+2*(1+1))+2+(1+1)'; preg_match_all("/\((([^()]*|(?R))*)\)/",$string,$matches); var_dump($matches);
You have javascript disabled. You will not be able to edit any code.