• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

Need Regular Expression

Hi

I need a regular expression for a credit card expiration date.  It needs to be in the format mm/yy where mm is between 01 and 12 (need leading zero) and the yy is between 10 and 20. They must put the forward slash in between.

Thanks
0
Charles Baldo
Asked:
Charles Baldo
  • 2
1 Solution
 
Patrick MatthewsCommented:
Something like this should match it:

(0[1-9]|1[012])/(1[0-9]|20)
0
 
Charles BaldoSoftware DeveloperAuthor Commented:
Perfect Thanks
0
 
Charles BaldoSoftware DeveloperAuthor Commented:
Perfect Thank you
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now