Regexp...ddress(3pm)
β¨ NAME β¨
okay bestie, welcome to the Regexp...ddress(3pm) page β aka Regexp::Common::Email::Address β brought to you by User Contributed Perl Documentation. Regexp::Common::Email::Address β Returns a pattern for Email Addresses. no cap. π
π¬ SYNOPSIS π¬
like, here's the exact code, bestie:
use Regexp::Common qw[Email::Address];
use Email::Address;
while (<>) {
my (@found) = /($RE{Email}{Address})/g;
my (@addrs) = map $_->address,
Email::Address->parse("@found");
print "X-Addresses: ",
join(", ", @addrs),
"\n";
}
π DESCRIPTION π
π $RE{Email}{Address} π
so this one gives you a regex to match email addresses as defined by RFC 2822. under {-keep}, the entire match is kept as $1. if you want to parse that further then pass it to Email::Address->parse(). don't worry, it's fast. fr fr, it ate. π
π SEE ALSO π
go peek at Email::Address, Regexp::Common, and perl. the holy trinity, lowkey. β¨
π AUTHOR π
Casey West, <casey@geeknest.com>. periodt. π«Ά
π COPYRIGHT π
Copyright (c) 2005 Casey West. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
made with perl v5.36.0, dated 2022-12-06. bye bestie, stay iconic! πβ¨π¦
π¦ where this page comes from
- debian bookworm: libregexp-common-email-address-perl 1.01-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libregexp-common-email-address-perl 1.01-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libregexp-common-email-address-perl 1.01-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libregexp-common-email-address-perl 1.01-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libregexp-common-email-address-perl 1.01-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms