.A(B) .A((B)) .A(((B))) So, \((.*?)\){2} doesn't work for me tried \((.*?)\)+ but not working either....