Post moved to new location:
http://code.mareoblo.pl/2008/08/28/regular-expressions-time-hhmm-validation-24-hours-format/
28-08-2008 by Marek Śliwiński
Post moved to new location:
http://code.mareoblo.pl/2008/08/28/regular-expressions-time-hhmm-validation-24-hours-format/
[...] – bookmarked by 4 members originally found by grparker on 2008-10-16 Regular Expressions: Time hh:mm validation 24 hours format [...]
Thanks :)
thanks friend, code is really useful if its too small hehe :-).
thanks again. hv a nice time.
This’s the first example that actually works… thanks man :)
Thanks Marek, as the other guy said, this is the first example that actually worked!! Cheers!
could you give me regex for :YYMMDDhhmmss (YY = year (00-99), MM (month = 01-12), DD (date, check date detail (leap year, 30st, 31st), hh (hour 00-23), mm (minute 00-59), ss (second 00 -59)
thank you very much
Hi erik,
This leap years checking for date can be a challenge. Plz try these forums where are RegEX experts:
http://social.msdn.microsoft.com/Forums/en-US/regexp/threads
http://regexadvice.com/forums/68/ShowForum.aspx
I want to use like 05.01, 13.00, 23.59.
I had changed a little bit.
^(([0-1][0-9])|([2][0-3]))[.]([0-5][0-9])$
Or Like This allowing patterns like :
9:00, 0:00
((([0-1]\d|2[0-3]):([0-5]\d))|([0-9]:([0-5]\d)))
Cheers