Debian Codegraph @

README

raw
1 NAME
2 Regexp::Common::Email::Address - Returns a pattern for Email Addresses
3
4 SYNOPSIS
5 use Regexp::Common qw[Email::Address];
6 use Email::Address;
7
8 while (<>) {
9 my (@found) = /($RE{Email}{Address})/g;
10 my (@addrs) = map $_->address,
11 Email::Address->parse("@found");
12 print "X-Addresses: ",
13 join(", ", @addrs),
14 "\n";
15 }
16
17 DESCRIPTION
18 $RE{Email}{Address}
19 Provides a regex to match email addresses as defined by RFC 2822. Under
20 "{-keep}", the entire match is kept as $1. If you want to parse that
21 further then pass it to "Email::Address->parse()". Don't worry, it's
22 fast.
23
24 SEE ALSO
25 Email::Address, Regexp::Common, perl.
26
27 AUTHOR
28 Casey West, <[email protected]>.
29
30 COPYRIGHT
31 Copyright (c) 2005 Casey West. All rights reserved.
32 This module is free software; you can redistribute it and/or modify it
33 under the same terms as Perl itself.
34