Hello everyone I need help in making solution in regex I have this regex:
大家好我需要帮助才能在正则表达式中制作解决方案我有这个正则表达式:
/^([0-9][0-9]|[0-9][0-9][0-9]):[0-5][0-9][:]\?$/
and as a user I can use 28:30
or 28
or 100:30
or 100
my regex is working fine when I add colon, but when I want to remove colon and simply use 28
or 100
it does not work, please help me.
作为一个用户,我可以使用28:30或28或100:30或100我的正则表达式工作正常,当我添加冒号,但当我想删除冒号,只是使用28或100它不起作用,请帮助我。