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; }
In reply to replacing email id using regex by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |