$text = preg_replace('#\[wikipedia\](.*?)\[/wikipedia\]#si', '\1', $text);