Hi!
I'm not sure what the question is but my first reaction was that it would be much easier to parse for human eyes if written as:
^(0?[1-9]|[12][0-9]|3[01])-(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)-(19|20)\d\d$
and then made case insensitive by setting
RegexOptions.IgnoreCase
(see
http://msdn2.microsoft.com/en-us/lib...exoptions.aspx)
Hi Guys,
This is regular expression for validating dd-MMM-yyyy date format:
^(0[1-9]|[1-9]|[12][0-9]|3[01])-([Jj][Aa][Nn]|[Ff][Ee][Bb]|[Mm][Aa][Rr]|[Aa][Pp][Rr]|[Mm][Aa][Yy]|[Jj][Uu][Nn]|[Jj][Uu][Lj]|[Aa][Uu][Gg]|[Ss][Ee][Pp]|[Oo][Cc][Tt]|[Nn][Oo][Vv]|[Dd][Ee][Cc])-(19|20)\d\d$
It will not allow case like 0-Aug-2007, should be 01-Aug-2007
Thanks,
Martin