Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
output needed
$_ = aaa@something.com bbb@something.com ccc@something.com
if tried this
i get $_ as aaa@z.com bbb@z.com ccc@something.comif ( $_ =~ m/^(\s+.+\@)(.+\.)(.+\s+) ){ $_ =~ s/^(\s+.+\@)(.+\.)(.*\s+)/$1something.$3/g; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: replacing email id using regex
by shmem (Chancellor) on Jan 02, 2007 at 10:21 UTC | |
|
Re: replacing hosts in e-mail addresses
by ferreira (Chaplain) on Jan 02, 2007 at 12:24 UTC | |
|
Re: replacing email id using regex
by l.frankline (Hermit) on Jan 02, 2007 at 10:44 UTC | |
|
Re: replacing email id using regex
by johngg (Canon) on Jan 02, 2007 at 10:31 UTC | |
by shmem (Chancellor) on Jan 02, 2007 at 11:06 UTC | |
by johngg (Canon) on Jan 02, 2007 at 11:20 UTC |