Hi
Easy solution:
$_ = 'aaa@z.com bbb@z.com ccc@z.com'; $_=~s/(\@)([^\.]+)(\.)/$1something$3/g; print $_;
Output:
aaa@something.com bbb@something.com ccc@something.com
regards,
Franklin
Don't put off till tomorrow, what you can do today.
In reply to Re: replacing email id using regex
by l.frankline
in thread replacing email id using regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |