Get email sender's address domain name

I am trying to extract just the sender’s address domain name from a list of emails to create a specific desktop folder…for example if i get an email from I want to create a desktop folder that is named by the “company” part of the email senders address.

1 Like

You can use regex the following regex to get everything between @ and .


You can get your domain name like this

In place of “” you can mention your string variable (which is your extracted email address)