Skip to content

Instantly share code, notes, and snippets.

@ianbarker
Created January 14, 2016 15:35
Show Gist options
  • Select an option

  • Save ianbarker/750dbee3dbfd120a3de1 to your computer and use it in GitHub Desktop.

Select an option

Save ianbarker/750dbee3dbfd120a3de1 to your computer and use it in GitHub Desktop.
var visaDebitRegex = new RegExp(
"^400626|40770[4-5]|408367|40845[6-7]|40940[0-2]|41228[5-6]|41378[7-8]|418760|41917[6-9]|419772|419776|420672|42159[2-4]|" +
"421682|423769|42449[5-7]|431072|43253[4-5]|441078|444001|44400[5-6]|444008|445025|4462(0[0-9]|1[0-1])|4462(1[3-9]|[2-4][0-9]|5[0-4])|" +
"4462(5[7-9]|6[0-9]|7[0-2])|44627(7[4-9]|8[0-3])|446286|44629[1-2]|446294|447378|450875|45397[8-9]|454313|45443[2-5]|454742|" +
"45670[5-6]|4567(2[5-9]|3[0-9])|458046|459305|4593(3[8-9]|40)|459362|459364|459389|459470|459(499|500|501)|45951[1-2]|459545|" +
"45956[6-8]|459(6[0-9][0-9]|7[0-9][0-9])|459847|460024|4658(30|[4-7][0-9])|4659(01|[1-4][0-9]|50)|472628|472684|474503|474551|" +
"4751[1-5][0-9]|475183|4757[1-5][0-9]|4762[2-6][0-9]|4763[4-8][0-9]|480240|4818(76|[8-9][0-9])|481900|48191[5-7]|4821(7[4-9]|80)|" +
"48218[2-3]|482185|4821(89|9[0-3])|482871|482874|483192([0-2][2-9][0-9]|3[0-8][0-9]|39[0-3])|48319[3-4]|48320[4-6]|483208|483211|" +
"483214([0-8][0-9][0-9]|9[0-8][0-9]|990)|48321500[4-9]|48321512[8-9]|483215(1[4-9][6-9]|2[0-9][0-9]|3[0-3][0-9]|34[0-5])|" +
"483215(3[6-9][6-9]|[4-5][0-9][0-9]|6[0-2][0-9]|63[0-1])|484412|484415|484417|484427|489342|4909(60|7[0-9])|49218[1-2]|495065|" +
"495067|49509[0-4]|498824|499806|49984[4-6]|499902");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment