^(0?[0-9]|1[0-9]|2[0-3]):(0?[0-9]|[1-5][0-9])$ 转载于:https://www.cnblogs.com/xiongjiawei/p/6553730.html