0

I need to get card type from card number. I've found these regex examples: michaelkeevildown gist, stackoverflow answer

But Cirrus card type isn't provided anywhere. Is there a possibility to distinguish cirrus from Maestro/Mastercard?

UPD:
In my case ^676623\d+$ was enough, but for different banks, the solution may differ.

Dasshield
  • 157
  • 1
  • 8
  • Have you tried using a MasterCard regex against a Cirrus or Maestro card? All three cards should fall under the same umbrella, at least [from a business point of view](https://brand.mastercard.com/brandcenter/more-about-our-brands.html). – Tim Biegeleisen Jul 16 '18 at 14:06
  • I've found a card example image, where the card number looks like `6757****` that match neither Maestro `(5018|5020|5038|6304|6759|6761|6763)` nor Mastercard `5[1-5]`. – Dasshield Jul 16 '18 at 14:11

0 Answers0