Regex · 24-hour time (HH:MM) · Free
24-hour time (HH:MM) regex.
Matches a 24-hour clock time from 00:00 to 23:59. Copy the pattern below, see what it matches, then tweak it for your exact case with the free generator.
The pattern
/([01]\d|2[0-3]):[0-5]\d/g
✓ Matches
09:3023:5900:00✗ Doesn't match
24:009:512:60Need a variation? Generate one
Other common patterns
Parsing and pattern-matching are everywhere in AI systems. MindloomHQ teaches you to build them for real — agents, RAG, pipelines — with projects and certificates.
Explore MindloomHQ →