Regex for Discover credit card

前端 未结 3 570
一整个雨季
一整个雨季 2021-01-11 15:43

I have read through this question, but for Discover card, the starting digits are 6011, 622126-622925, 644-649, 65 instead of just 6011, 65. (Sourc

3条回答
  •  说谎
    说谎 (楼主)
    2021-01-11 15:58

    even this ticket is 3 years ago, I encountered the same task and would like to share a regex for 622126-622925 :)

    ^(622[1-9]\\d(?

    which using zero-width negative lookbehind to exclude not expected number

提交回复
热议问题