regex for HH:mm with first zero
this regex match 00:00
and 00:23
, and not match 9:00
/^([0-1]\d|2[0-3]):([0-5]\d)$/
Written by Аспирин Хаостиков
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Js
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#