?
Solved

Regular expression (Quarterly Date)

Posted on 2008-10-29
3
Medium Priority
?
223 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 1000 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
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…

752 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