12-Hour Time (hh:mm:ss) Regular Expression

Category: Date & Time

A regular expression to match a 12-Hour Time (hh:mm:ss).

/^(?:1[0-2]|0?[1-9]):[0-5]\d:[0-5]\d$/

Date Examples:

  • 12:34:45
  • 10:25:54
  • 09:14:22

See Also:

Rate This Regex
Sending
User Review
0 (0 votes)

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.