Regexp::Common::CC(3)
π³ NAME π³
Regexp::Common::CC β provide patterns for credit card numbers. Fr fr, that's the whole name vibe: it's the credit-card-pattern corner of the Regexp::Common universe π
β¨ SYNOPSIS β¨
Okay bestie, here's the group-chat demo:
use Regexp::Common qw /CC/;
while (<>) {
/^$RE{CC}{Mastercard}$/ and print "Mastercard card number\n";
}
πΈ DESCRIPTION πΈ
Please consult the manual of Regexp::Common for a general description of the works of this interface. It's giving "the main character manual has the full lore" β¨
Do not use this module directly, but load it via Regexp::Common. That's the rule, no cap.
This module offers patterns for credit card numbers of several major credit card types. Currently, the supported cards are: Mastercard, Amex, Diners Club, and Discover. Slay, those are the four named in the source. π
π SEE ALSO π
Regexp::Commonfor a general description of how to use this interface.http://www.freedom.nlachnet.com/~hstiles/cardtype.htmlβ Credit Card Validation - Check Digitshttp://euro.ecom.cmu.edu/resources/elibrary/everycc.htmβ Everything you ever wanted to know about CC'shttp://www.webopedia.com/TERM/L/Luhn_formula.htmlβ Luhn formula
π AUTHORS π
Damian Conway (damian@conway.org) and Abigail (regexp-common@abigail.freedom.nl). Iconic duo, periodt π
π οΈ MAINTENANCE π οΈ
This package is maintained by Abigail (regexp-common@abigail.freedom.nl). She's holding the keys, iykyk.
π BUGS AND IRRITATIONS π
Bound to be plenty. Send them in to regexp-common@abigail.freedom.nl. Not me saying "plenty" β that's literally the manual, bestie π
π LICENSE and COPYRIGHT π
This software is Copyright (c) 2001 - 2024, Damian Conway and Abigail.
This module is free software, and may be used under any of the following licenses:
- The Perl Artistic License. See the file
COPYRIGHT.AL. - The Perl Artistic License 2.0. See the file
COPYRIGHT.AL2. - The BSD License. See the file
COPYRIGHT.BSD. - The MIT License. See the file
COPYRIGHT.MIT.
Source/version vibe check: perl v5.42.0, dated 2024-08-09, and this is the Regexp::Common::CC(3) page. Byeee, go match those card numbers responsibly π«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Regexp-Common 2024080801.0.0-160000.2.2 Β· Artistic-1.0 OR Artistic-2.0 OR BSD-3-Clause OR MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms