Solved

Regular expression (Quarterly Date)

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C#.NET MSVS 2010 is there some things not allowed in Background Worker DoWork? 27 36
MailAddress in vb 4 29
Easy filter aspnet 2 27
Groupbox Control ? 2 19
Whatever be the reason, if you are working on web development side,  you will need day-today validation codes like email validation, date validation , IP address validation, phone validation on any of the edit page or say at the time of registration…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

837 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