Test, validate and match regular expressions
Matches valid times in 24-hour HH:MM:SS format, enforcing hours 00–23, minutes 00–59, and seconds 00–59. Each component is captured into a separate group for easy extraction. The multiline flag makes ^ and $ match per line, and the global flag finds all occurrences—ideal for validating timestamps in logs, form inputs, or multiline text.