javascript - Regular expression to match Date -
javascript - Regular expression to match Date -
i trying validate next date format through regexp, still didn't ant working solution-
ex.- oct-12-2011 feb-06-1995 how can using regexp.
thanks in advance!!
... not sure how strictly want this.
var months = [ 'jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec' ], regvalidate = regexp('^(?:' + months.join('|') + ')-[0-3][0-9]-\\d{4}$'); alert(regvalidate.test('oct-12-2011')); javascript regex
Comments
Post a Comment