similiar like this example, php: remove brackets/contents from a string? i have no idea to replace
$str = \'(ABC)some text\'
into
I'd avoid using regex altogether here. Instead, you could use normal string functions like this: $str = str_replace(array('(',')'),array(),$str);