I could use some help developing a regex for the following range:
222100‑272099
This is what I have so far, but I am having trouble figuring out how to make it work for the entire range. I get caught up on the 3rd and 4th digit.
^2[2-7][0-9][0-9][0-9][0-9]
This is a part of this
var optCC = '2221000000000000';
if(optCC.match(/^2[2-7][0-9][0-9][0-9][0-9]/)){
//do stuff
}
Basically I am trying to detect if someone is using a legacy Mastercard credit card number and this is the range I've found through my searching.
Thanks in advance!