I need a reg-ex for JCB card validation with this rule, (Reference for JCB format)
First four digits must be 3088, 3096, 3112, 3158, 3337, or the first eight digits must be in the range 35280000 through 35899999. Valid length: 16 digits.
Many posts are found with Regex ^(?:2131|1800|35\d{3})\d{11}$
referring to post1, post2 and post3.
I am building a credit card payment module using Authorize.Net.But the Authorize.Net test JCB credit card validation fails for above Regex (^(?:2131...).
But there are JCB cards like 3088000000000017 (Authorize.Net test card), 3096022966045455,3088810779293696.
Help me with the Regex. I could not find any JCB cards with 2131 or 1800, am I missing something.