<?php $string = <<<TEXT BUILD THE ULTIMATE BRAWLER Not a full line of UPPERCASE TEXT BATTLE THROUGH EPIC LEGO THEMES text text TEXT; echo preg_replace_callback('/([A-Z-]+(?: [A-Z]+)+)(\r\n|\r|\n)/', function($matches) { return "[b]{$matches[0]}[/b]"; }, $string);
You have javascript disabled. You will not be able to edit any code.