Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Regexp::Common::Email::Address

Name Regexp::Common::Email::Address
Version 1.01
Located at /usr/share/perl5
File /usr/share/perl5/Regexp/Common/Email/Address.pm
Is Core No
Search CPAN for this module Regexp::Common::Email::Address
Documentation Regexp::Common::Email::Address
Module Details Regexp::Common::Email::Address

NAME

Regexp::Common::Email::Address - Returns a pattern for Email Addresses


SYNOPSIS

  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}

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.


SEE ALSO

the Email::Address manpage, the Regexp::Common manpage, perl.


AUTHOR

Casey West, <casey@geeknest.com>.


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.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026