Classifier Summary: Credit Card - Diners

Basic Information

Caption: Credit Card - American Express

Description: This classifier identifies Diners credit card numbers using a regular expression, relevant nearby terms and LUHN validation . It accommodates both hyphen-separated formats and non-delimited formats, ensuring coverage of all common variations.

Type: By content

Value Per Record: $100

Sensitive: Yes

Active: Yes


Regulations

  • PCI
  • FTC

Conditions

  • Matches regex: (?:^|[^-+.,'\"#;:\/\w\\])((30|36|38|39)((\d{12}|\d{14}|\d{17}|(\d{2}(\-\d{4}){3})(\-\d{3})?)(?:^|[^-+'\"#;:\/\w\\]))|((?:^|[^-+'\"#;:\/\w\\])36(\d{12}|(\d{2}\-\d{6}\-\d{4}))(?:^|[^-+'\"#;:\/\w\\])))
  • Nearby Words: "Diners, Credit Card, CCN, CRV, CCV, Valid Exp., Expire, Expires, Expiration"
  • Validation Method: LUHN

Regular Expression Description

This regex detects a 14, 16 or 19 digit numbers starting with 30, 36, 38, or 39 followed by 12, 14 or 17 numeric digits (0–9). It can be non-delimited 16-digit or a hyphenated format (e.g., 3611-2345-6789-0123). To reduce false positives, the rule also requires the presence of nearby terms such as "credit," "CCN," "CRV," "CCV," or "Exp." and LUHN validation.

To check if a string matches this regular expression, use Regex101.

Sample Files

Diners - Positive Sample

Diners - Negative Sample