I would like a JavaScript regular expression that will match time using the 24 hour clock, where the time is given with or without the colon.
For example, I would li
/^(?:[01]\d|2[0-3]):?[0-5]\d$/