Solved

Regular expression (Quarterly Date)

Posted on 2008-10-29
3
216 Views
Last Modified: 2013-11-07
I have a textbox. I need to validate the textbox value once the user enter the date in this format. (Q1/2006, Q2/2008, Q3/2009, Q4/2002) where Q1, Q2, Q3, Q4 are the quarters of the year.

Thanks in advance
0
Comment
Question by:blazewada
[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
3 Comments
 
LVL 27

Accepted Solution

by:
ddrudik earned 250 total points
ID: 22831465
^Q[1-4]/\d{4}$
0
 

Author Closing Comment

by:blazewada
ID: 31623608
Thanks for quick response!
0
 
LVL 27

Expert Comment

by:ddrudik
ID: 22831628
Thanks for the question and the points.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Suggested Solutions

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

726 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