Ask a Question

Regular expressions

4m4d3u5
Contributor

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?

1 REPLY 1
cunderw
Community Hero

Re: Regular expressions

You could native javascript regular expressions. This would be a good place to start:

 

https://www.w3schools.com/jsref/jsref_obj_regexp.asp

 

Or using non-native with test completes aq utilities.

 

https://support.smartbear.com/testcomplete/docs/reference/misc/regular-expressions.html?q=regular%20...


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
cancel
Showing results for 
Search instead for 
Did you mean: