Regular expression to test for either “MM:SS” or “HH:MM:SS”

后端 未结 0 1197
滥情空心
滥情空心 2021-01-17 11:54

I have a timestamp as a string that can either be formatted as HH:MM:SS or MM:SS, but I don\'t know which ahead of time.

How can I achieve t

相关标签:
回答
  • 消灭零回复
提交回复
热议问题