PHP, verschachtelte Vorlagen in preg_replace

preg_replace("/\[b\](.*)\[\/b\]/Usi", "<strong>$1</strong>", "Some text here... [b][b]Hello, [b]PHP![/b][/b][/b] ... [b]and here[/b]");

kehrt zurück

Some text here... <strong>[b]Hello, [b]PHP!</strong>[/b][/b] ... <strong>and here</strong>

Aber ich muss alle [b] ... [/ b] Tags ersetzen. Warum passiert das in meinem Fall nicht?

Antworten auf die Frage(4)

Ihre Antwort auf die Frage