Posts by Faraday • 56 points
1 post
-
4
votes1
answer47
viewsA: REGEX of HH:MM:SS may be negative
Utilize -? at the beginning of the REGEX for the negative signal to be optional: ^-?(?:[0-9]{0,4}):(?:[0-5][0-9]):(?:[0-5][0-9])$
1 post
4
votes1
answer47
viewsUtilize -? at the beginning of the REGEX for the negative signal to be optional: ^-?(?:[0-9]{0,4}):(?:[0-5][0-9]):(?:[0-5][0-9])$