Credit Card Number (Diner's Club)

Prev Next

Credit Card Number (Diner's Club) is a 14-digit number beginning with 300–305, 36, 38, or 39 and might have dashes (hyphens) or spaces as separators. For example, NNNN-NNNNNN-NNNN or NNNN NNNNNN NNNN. Matches exclude common test card numbers.

Validator

Validator

Description

Luhn 10 (remainder 0)

Validates using the Luhn 10 checksum.



Matched expressions

Regex expressions

Description

Score

\b30[0-5]\d-\d{6}-\d{4}\b

Matches a 14-digit number of the format NNNN-NNNNNN-NNNN that begins with 300–305, delimited by hyphen.

1

\b30[0-5]\d \d{6} \d{4}\b

Matches a 14-digit number of the format NNNN NNNNNN NNNN that begins with 300–305, delimited by space.

1

\b30[0-5]\d{11}\b

Matches a 14-digit number of the format NNNNNNNNNNNNNN that begins with 300–305, without a delimiter.

1

\b3[689]\d{2}-\d{6}-\d{4}\b

Matches a 14-digit number of the format NNNN-NNNNNN-NNNN that begins with 36, 38, or 39, delimited by hyphen.

1

\b3[689]\d{2} \d{6} \d{4}\b

Matches a 14-digit number of the format NNNN NNNNNN NNNN that begins with 36, 38, or 39, delimited by space.

1

\b3[689]\d{12}\b

Matches a 14-digit number of the format NNNNNNNNNNNNNN that begins with 36, 38, or 39, without a delimiter.

1



Ignored expressions

Regex expressions

Description

3020([ -]?)416932([ -]?)2643

30204169322643 delimited by space or hyphen.

3021([ -]?)804719([ -]?)6557

30218047196557 delimited by space or hyphen.

3022([ -]?)151156([ -]?)3252

30221511563252 delimited by space or hyphen.

3046([ -]?)400000([ -]?)5512

30464000005512 delimited by space or hyphen.

3600([ -]?)000000([ -]?)0008

36000000000008 delimited by space or hyphen.

3614([ -]?)890064([ -]?)7913

36148900647913 delimited by space or hyphen.

3670([ -]?)010200([ -]?)0000

36700102000000 delimited by space or hyphen.

3852([ -]?)000002([ -]?)3237

38520000023237 delimited by space or hyphen.

3912([ -]?)345678([ -]?)9019

39123456789019 delimited by space or hyphen.