Regexp::Common::Email::Address(3pm)

Regexp::Common::Email::Address3pm

Returns a pattern for email addresses

Usage

  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";
  }

Overview

$RE{Email}{Address}

Provides 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.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0–6.0
  2. 7–9
  3. 10–11
  4. 12–13

Author

Casey West, <[email protected]>.

From libregexp-common-email-address-perl 1.01-6 in Debian 13 (Trixie). Parsed by carta from the page's man source.