my @domains = grep { /.+@(.+)/ } @emails;
In reply to Using grep to extract domain from email by mhearse