javascript - regex date format -


what regex string expression following date formats?

09 jan 2012 09/01/2012 

no minimum or max. have javascript file stores regex's, such as:

var sanumberregex = /(^0[87][23467]((\d{7})|( |-)((\d{3}))( |-)(\d{4})|( |-)(\d{7})))/; var tagnameregex = /^[a-z0-9][-\.a-z0-9]{4,29}$/i; 

thank you

edit:

sample 1

/^\d{2} (jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec) \d{4}$/ 

sample 2

/^\d{2}/\d{2}/\d{4}$/ 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -