i need to find all uppercase words in a string and set it bold
$_POST[\'descricao\'] = \"UPPERCASE test WORD\" $_POST[\'descricao\'] = preg_replace(\"\\b[A-Z]{2,
Use this:
$_POST['descricao'] = "UPPERCASE test WORD" $_POST['descricao'] = preg_replace("/\b([A-Z]{2,})\b/", "$1", $_POST['descricao']);