[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

ValidationExpression

Posted on 2006-07-02
2
Medium Priority
?
215 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

650 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