It's so late, I can't quite get it.
My text looks like this:
This is a [;;Text] and I want to match [center]everything without ;;[/center]
I use this to transform to HTML:
return preg_replace('/\[(.+)\]/U', '<$1>', $text);
And I thought the pattern /\[[^;{2}](.+)\]/U should do the trick but it does not work.