?
Solved

ValidationExpression

Posted on 2006-07-02
2
Medium Priority
?
218 Views
Last Modified: 2006-11-18
I have the following ValidationExpression for expecting time in a screen.
without the am pm sign.
but if I enter the time 10:00 I get the message of wrong time.
What is the problem?

ValidationExpression="^([1-9]|1[1-9]|2[0-4]|0[1-9]){1}(:[0-5][0-9]){1}$"

Thankyou Anat
0
Comment
Question by:ANAT2403
2 Comments
 
LVL 18

Accepted Solution

by:
Ravi Singh earned 2000 total points
ID: 17026753
Hi, the second alternative in the first group has "...1[1-9]...", i'm guess that should have been "...1[0-9]...", try the following modified expression:

^([1-9]|1[0-9]|2[0-4]|0[1-9]){1}(:[0-5][0-9]){1}$
0
 

Author Comment

by:ANAT2403
ID: 17026810
seems to be O.K.
Thankyou
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
Loops Section Overview
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question