Click here to Skip to main content
16,020,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can we have a validation expression for a text box academic year(e.g.,2011-2012) using Regular Expression Validator. Could anyone help me out?

thanq.
Posted
Updated 6-Mar-12 23:25pm
v2

^\d{4}-\d{4}$......we get 1111-1111 2222-2222 2011-2012

i think we want like this
 
Share this answer
 
Comments
n@vin 7-Mar-12 6:05am    
thanks a lot
Hi,

Why you are not trying range validation for checking year in between.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900