<?php $str = 'ABC-DEF-(AKJ)-A-12'; echo preg_replace("/\([^)]+\)/","(XYZ)",$str);
You have javascript disabled. You will not be able to edit any code.