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 [email protected] 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!

Best Answer

  • ST_-Superman-_
    Answer ✓

    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
    ______________________________________________________________________________________________

Answers

  • 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.