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
    ST_Superman Domo Employee
    Answer ✓

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

     

    1.png

Answers

  • ST_Superman
    ST_Superman Domo Employee
    Answer ✓

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

     

    1.png

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