mike55 Posted November 13, 2007 Posted November 13, 2007 I am using a regular expression validator to try and validate that the user submits a valid time i.e. nothing over 59 minutes is allowed. I am using the following expression: (\b[0-9]{0,2}\b)?((\.\b[0-5]{0,1}[0-9]{0,1}\b)?) However, the expression is failing to catch numbers over .59 Any suggestions? Mike55. Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
mike55 Posted November 13, 2007 Author Posted November 13, 2007 Solved the problem by trying this: ((\b[0-9]{0,2}\b)?)((\.\b[0-5]{0,1}[0-9]{0,1}\b)?) Mike55. Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.