Codice PHP:
<?php 
$str 
'Il treno è partito alle ore 15:41 da Roma';
$str preg_replace('#([0-9]+:[0-9]+)#''[b]$1[/b]'$str);
echo(
$str);
?>