<?php $value ='777:50'; $reg='/([01]?[0-9]|2[0-3])\:[0-5][0-9]/'; if(preg_match($reg, $value)) { echo 'match'; } else { echo 'does not match'; }
You have javascript disabled. You will not be able to edit any code.