KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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 . ( Source ) For Discover cards, I picked up this regex from that question ^6(?:011|5[0-9]{2})[0-9]{12}$ I modified it to cover 6011 , 644-649 & 65 but for 622126-622925 , building regex is hard cuz of my poor regex skills. I have this regex so far 6(?:011|5[0-9]{2}|[4][4-9][0-9]|[2]{2}[1-9])[0-9]{2}$ , but it only checks for 622[1-9]** . How do I modify it so that it accepts only between 622126-622925 for 622*** case?
Tags (comma-separated)
Save Edits
Cancel