GeekZilla
Date Regular Expression (dd/MMM/yyyy)
The following matches:
- 01/JAN/2007
- 22/Feb/2006
But doesn't match:
- 01/01/2007
- 22/02/2007
- 01 Jan 2007
^(([0-9])|([0-2][0-9])|([3][0-1]))\/(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\/\d{4}$
Author Paul Hayman
Paul is the COO of kwiboo ltd and has more than 20 years IT consultancy experience. He has consulted for a number of blue chip companies and has been exposed to the folowing sectors: Utilities, Telecommunications, Insurance, Media, Investment Banking, Leisure, Legal, CRM, Pharmaceuticals, Interactive Gaming, Mobile Communications, Online Services.
Paul is the COO and co-founder of kwiboo (http://www.kwiboo.com/) and is also the creator of GeekZilla.
Comments
Madhu Sudan Mahanta
said:
Thanks it's working.
Ronald
said:
not working..
var reg = new RegExp("^(([0-9])|([0-2][0-9])|([3][0-1]))\/(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\/\d{4}$");
reg.test("01/JAN/2007") will return false!
Harshada
said:
Thanks alot !!!!
sid
said:
not working
selvan
said:
thanks
bhargav
said:
its working..thank you