Credit Card Data

CREDITCARD

Matches valid credit card numbers (i.e with valid Luhn checksum) in all varieties: lengths (depending on the credit card scheme), formattings (continuous, space-delimited), encodings (when submitted in the URL).

output type:LONG
quantifier:none
configuration:none

Example:

378282246310005
3782 822463 10005
38520000023236
4917%206100%200000%200000%20003

Pattern:

1
CREDITCARD:cc EOL;

Parsing results creditcard numbers in lines 1,2 and 4 parsed into LONG field cc. Parsing fails for line 3 due to invalid Luhn check digit.

cc _unmatched
378282246310005 NULL
378282246310005 NULL
NULL {pos=34 len=15 data=’38520000023236’}
4917610000000000003 NULL