Back to Library
Numbers

Time (24h)

Matches time in HH:MM format (24-hour).

Pattern
^(?:[01]\d|2[0-3]):[0-5]\d$

Test Cases

13:45 Match
25:00 No Match

Try it Live

Test and customize this pattern in our interactive editor

Open in Editor