Solved

ValidationExpression

Posted on 2006-07-02
2
208 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 500 total points
Comment Utility
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
Comment Utility
seems to be O.K.
Thankyou
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now