<?php $data = "The time is 1020 and the time is 1340 and 1550"; $data = preg_replace('/\b(\d{2})(\d{2})\b/', "$1:$2", $data); echo $data;
You have javascript disabled. You will not be able to edit any code.