I think you mean something like this:
ereg_replace("[[]]*]", "", $string);
efectively, this should match anything of the form [(anycharacter except ']')] and replace it with nothing. Unfortunately, I don't have access to php from where I am right now, so hopefuly someone who does can test it to see if that works.