Solved

Regular expression (Quarterly Date)

Posted on 2008-10-29
3
208 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
  • 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…

809 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