标签: regex regex-negation credit-card regex-group
我需要从卡号中获取卡类型。我找到了以下正则表达式示例:michaelkeevildown gist,stackoverflow answer
但是Cirrus卡类型在任何地方都没有提供。有可能将卷云与Maestro / Mastercard区别开吗?
UPD: 就我而言,^676623\d+$就足够了,但是对于不同的银行,解决方案可能会有所不同。
^676623\d+$