Credit Card Number (Visa) is 16-digit number and might have dashes (hyphen) or spaces as separators. For example, NNNN-NNNN-NNNN-NNNN or NNNN NNNN NNNN NNNN. This excludes common test card numbers.
Validator
Validator
Description
Luhn 10 (remainder 0)
Validates using the Luhn 10 checksum.
Matched expressions
Regex expressions
Description
Score
\b4\d{3}-\d{4}-\d{4}-\d{4}\b
Matches a 16-digit number beginning with 4, delimited by hyphen.
1
\b4\d{3} \d{4} \d{4} \d{4}\b
Matches a 16-digit number beginning with 4, delimited by space.
1
\b4\d{15}\b
Matches a 16-digit number beginning with 4, without a delimiter.
Data Loss Prevention (DLP) > Classification Guide > Trellix Data Loss Prevention 11.x.x Classification Definitions Reference Guide - March 2025 > Advanced Pattern Definitions
Data Loss Prevention (DLP) > Classification Guide > Trellix Data Loss Prevention 11.x.x Classification Definitions Reference Guide - March 2025 > Advanced Pattern Definitions
Data Loss Prevention (DLP) > Classification Guide > Trellix Data Loss Prevention 11.x.x Classification Definitions Reference Guide - March 2025 > Advanced Pattern Definitions
Data Loss Prevention (DLP) > Classification Guide > Trellix Data Loss Prevention 11.x.x Classification Definitions Reference Guide - March 2025 > Advanced Pattern Definitions