pola regex untuk waktu

// Regex pattern for HH:MM 24-hour with leading 0
String timeRegex = "^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$";