I have an text input box which needs to be validated. The user should be only able to enter the date in dd-Mmm-yyyy format. ex: 01-Jun-2013, 31-Aug-2015 and so on. Or they shoul
Not sure what you mean by T+1, etc, but here's the bare minimum that does what you need:
^[01][0-9]-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-\d{4}$
You can also use the i flag to make the whole thing case insensitive.
i
http://www.regexr.com/3bdeu