Forum Discussion

4m4d3u5's avatar
4m4d3u5
Contributor
6 years ago

Regular expressions

I want to give a user a input box and have them enter a value in a particular format like 00:00, where the input has to be a number from 0-60 in the 00:00 format. This would be done using regular expressions. Does anyone know how to work with regular expressions with user input boxes so that if a user enters outside the bounds of a format that it would give the input box back to the user?