Hey David, I've never seen you post a regex.
Heard of them?
Cause I keep seeing you posting string functions where regexs are the real way to do it. Do you feel that multiple string function calls are the way to do everything?
Sorry to be harsh, but seeing crap code like that consistantly really irks me... especially when you are helping to propogate more crap code by posting that crap as the way to do things.
Arjan, try this:
<?
$subject = "[whateverhere]";
$subject = preg_replace(array('/[/','/]/'),array('(',')'),$subject);
echo $subject;
?>