preg_replace(\"/\\[b\\](.*)\\[\\/b\\]/Usi\", \"$1\", \"Some text here... [b][b]Hello, [b]PHP![/b][/b][/b] ... [b]and here[/b]\");
Why use regex for this particular case? You could get away with a simple string replace every [b] to strong and every [/b] to the /strong.