Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

card types regex

    VISA: /^4[0-9]{12}(?:[0-9]{3})?$/,
    MASTER: /^5[1-5][0-9]{14}$/,
    AMEX: /^3[47][0-9]{13}$/,
    ELO: /^((((636368)|(438935)|(504175)|(451416)|(636297))d{0,10})|((5067)|(4576)|(4011))d{0,12})$/,
    AURA: /^(5078d{2})(d{2})(d{11})$/,
    JCB: /^(?:2131|1800|35d{3})d{11}$/,
    DINERS: /^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,
    DISCOVERY: /^6(?:011|5[0-9]{2})[0-9]{12}$/,
    HIPERCARD: /^(606282d{10}(d{3})?)|(3841d{15})$/,
    ELECTRON: /^(4026|417500|4405|4508|4844|4913|4917)d+$/,
    MAESTRO: /^(5018|5020|5038|5612|5893|6304|6759|6761|6762|6763|0604|6390)d+$/,
    DANKORT: /^(5019)d+$/,
    INTERPAYMENT: /^(636)d+$/,
    UNIONPAY: /^(62|88)d+$/,
Comment

PREVIOUS NEXT
Code Example
Javascript :: jQuery Traversing - Ancestors 
Javascript :: what does this operation tell if(!arr.some(isNaN)) JavaScript 
Javascript :: nodejs: Basic: managing file: Read, Write, Create, Delete 
Javascript :: how to divide a month into weeks in moment js 
Javascript :: how to convert a title to a url slug in jquery 
Javascript :: test driven development javascript 
Javascript :: Could not resolve "i18n-iso-countries" 
Javascript :: javascript template string condtioning 
Javascript :: get biggest element in array javascript 
Javascript :: Json to npy file 
Javascript :: phaser random circle 
Javascript :: phaser create animation on sprite 
Javascript :: phaser stagger play 1 
Javascript :: apply multiple style objects in react js 
Javascript :: npm deploy next js with tailwind 
Javascript :: ray intersection js 
Javascript :: store reference of event listener inside a element 
Javascript :: change on id 
Javascript :: Slice and Splice -Javascript 2 
Javascript :: ternary operators js 
Javascript :: js filter example 
Javascript :: check if is array javascript 
Javascript :: javascript extract array from object 
Javascript :: type js 
Javascript :: How to acces props of a functional component 
Javascript :: swagger ui express 
Javascript :: react portal example 
Javascript :: javascript css 
Javascript :: assign values to array in javascript 
Javascript :: what is lodash omitBy 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =