Use Magic ETL to isolate the domain of an email address (company.com).

Reply
Highlighted
White Belt

Use Magic ETL to isolate the domain of an email address (company.com).

I am trying to use Magic to isolate the domain of an email address yourname@company.com to just company.com. I am open to any way to do it in Magic. So far the only thing I have found is Regex, but when I put it in, nothing seems to happen. 

I am using /.+@/ 

This seems to work fine in my tests on https://regex101.com/

 

Thanks!

Trumpetbob42
**Say “Thanks” by clicking the “heart” in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"

Accepted Solutions
Black Belt

Re: Use Magic ETL to isolate the domain of an email address (company.com).

You can also use the "Split Columns" tile to accomplish this:

 

1.png


______________________________________________________________________________________________
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman
______________________________________________________________________________________________

All Replies
Black Belt

Re: Use Magic ETL to isolate the domain of an email address (company.com).

You can also use the "Split Columns" tile to accomplish this:

 

1.png


______________________________________________________________________________________________
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman
______________________________________________________________________________________________
White Belt

Re: Use Magic ETL to isolate the domain of an email address (company.com).

I also found that this would work with the RegEx. As well as the accepted solution. 

(.*?)\@

Then select replace with empty string in the configuration wheel. 

Trumpetbob42
**Say “Thanks” by clicking the “heart” in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"
Announcements
Dojo Day is Coming! Mark your calendars for May 30th 0900-1700 MST Click here for more information