Solved

Regular expression (Quarterly Date)

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…

746 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

9 Experts available now in Live!

Get 1:1 Help Now