in reply to replacing email id using regex
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.
|
|---|