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

Trumpetbob42
Trumpetbob42 Domo Employee

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"

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

  • 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
  • Trumpetbob42
    Trumpetbob42 Domo Employee

    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"