Regexp...ddress(3pm)

πŸ“¦
version 1.01 Β· 2 versions
  • 1.01 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.01 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 (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