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
Remove the ':' if the string has one, then if the string is of the form "DDDD", convert it into an int and compare it to 2400.
':'
"DDDD"
int