Payment Card PAN
Identifies payment card Primary Account Numbers (PANs) for Visa, Mastercard (including 2-series BINs), American Express, Discover, JCB, Diners Club and UnionPay, in contiguous and space/hyphen-separated forms, with AllDigitsSameFilter and card-context tiers.
- Type
- regex
- Engine
- universal
- Confidence
- medium
- Confidence justification
- Medium confidence: card BIN prefixes (including Mastercard 2-series BINs), AllDigitsSameFilter, and card-brand corroboration constrain matches, though custom Purview XML cannot run Luhn validation.
- Detection quality
- Verified
- Jurisdictions
- global
- Regulations
- CCPA/CPRA, GDPR
- Frameworks
- ISO 27001, ISO 27701, PCI-DSS, SOC 2
- Data categories
- pii, financial
- Scope
- narrow
- Risk rating
- 8
- Platform compatibility
- Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, CrowdStrike DLP: Compatible, Palo Alto: Compatible, Netskope: Adapted from Purview
Pattern
(\b(?:4\d{15}|4\d{12}|(?:5[1-5]|2[2-7])\d{14}|3[47]\d{13}|6(?:011|5\d{2}|4[4-9]\d|221)\d{10,13}|35(?:2[89]|[3-8]\d)\d{12}|3(?:0[0-5]|[689]\d)\d{11,13}|62\d{14,17})\b|\b\d{4}(?:[ -]\d{4}){3}\b)
Corroborative evidence keywords
payment card, card number, Visa, Mastercard, American Express, Amex, Discover, PAN, PCI, credit card, card no, [object Object], visa, mastercard, amex, american express, discover, jcb, diners club
Proximity: 300 characters
Should match
4111111111111111— Visa test card (16 digits starting with 4)5500000000000004— Mastercard test card (16 digits starting with 55)2221000000000000— Mastercard 2-series test card340000000000009— American Express test card (15 digits starting with 34)6011000000000004— Discover test card (16 digits starting with 6011)3530111333300000— JCB test card (16 digits starting with 35)4111 1111 1111 1111— Visa with space separators4111-1111-1111-1111— Visa with hyphen separators
Should not match
1234567890123456— Starts with 1, not a valid card prefix411111111111— Only 12 digits, too short9999999999999999— Invalid BIN prefix
Known false positives
- Generic numeric sequences resembling card numbers. Mitigation: Luhn validation and BIN prefix filtering. Corroborative keywords in proximity.
- Test card numbers in documentation or code. Mitigation: AllDigitsSameFilter removes trivial sequences.