Skip to main content
Post formatting
Source Link
Nimantha
  • 6.5k
  • 6
  • 32
  • 78

use ^([0]?[1-9]|[1|2][0-9]|[3][0|1])./-./-$Use:

^([0]?[1-9]|[1|2][0-9]|[3][0|1])[./-]([0]?[1-9]|[1][0-2])[./-]([0-9]{4}|[0-9]{2})$ 

orOr go to follwoingfollowing link , http://regexlib.com/DisplayPatterns.aspx?cattabindex=4&categoryId=5

use ^([0]?[1-9]|[1|2][0-9]|[3][0|1])./-./-$

or go to follwoing link , http://regexlib.com/DisplayPatterns.aspx?cattabindex=4&categoryId=5

Use:

^([0]?[1-9]|[1|2][0-9]|[3][0|1])[./-]([0]?[1-9]|[1][0-2])[./-]([0-9]{4}|[0-9]{2})$ 

Or go to following link , http://regexlib.com/DisplayPatterns.aspx?cattabindex=4&categoryId=5

Source Link
Singleton
  • 3.6k
  • 3
  • 27
  • 37

use ^([0]?[1-9]|[1|2][0-9]|[3][0|1])./-./-$

or go to follwoing link , http://regexlib.com/DisplayPatterns.aspx?cattabindex=4&categoryId=5