No need for regex, $str = str_replace(array('(', ')'), array('{', '}'), $str); PHP: str_replace() is much faster than preg_replace() (Unless you need to use regular expression for a reason we're not aware of)