1Regexp::Common::CC(3) User Contributed Perl DocumentationRegexp::Common::CC(3)
2
3
4
6 Regexp::Common::CC -- provide patterns for credit card numbers.
7
9 use Regexp::Common qw /CC/;
10
11 while (<>) {
12 /^$RE{CC}{Mastercard}$/ and print "Mastercard card number\n";
13 }
14
16 Please consult the manual of Regexp::Common for a general description
17 of the works of this interface.
18
19 Do not use this module directly, but load it via Regexp::Common.
20
21 This module offers patterns for credit card numbers of several major
22 credit card types. Currently, the supported cards are: Mastercard,
23 Amex, Diners Club, and Discover.
24
26 Regexp::Common for a general description of how to use this interface.
27
28 <http://www.beachnet.com/~hstiles/cardtype.html>
29 Credit Card Validation - Check Digits
30
31 <http://euro.ecom.cmu.edu/resources/elibrary/everycc.htm>
32 Everything you ever wanted to know about CC's
33
34 <http://www.webopedia.com/TERM/L/Luhn_formula.html>
35 Luhn formula
36
38 Damian Conway (damian@conway.org) and Abigail
39 (regexp-common@abigail.be).
40
42 This package is maintained by Abigail (regexp-common@abigail.be).
43
45 Bound to be plenty. Send them in to regexp-common@abigail.be.
46
48 This software is Copyright (c) 2001 - 2017, Damian Conway and Abigail.
49
50 This module is free software, and maybe used under any of the following
51 licenses:
52
53 1) The Perl Artistic License. See the file COPYRIGHT.AL.
54 2) The Perl Artistic License 2.0. See the file COPYRIGHT.AL2.
55 3) The BSD License. See the file COPYRIGHT.BSD.
56 4) The MIT License. See the file COPYRIGHT.MIT.
57
58
59
60perl v5.32.0 2020-07-28 Regexp::Common::CC(3)