Codice PHP:
$stringa "[COLOR=FF0000]";

$nuova str_replace("[COLOR=FF0000]""<font color=\"FF0000\">"$stringa);