# Parse company name from email

**URL:** <https://community.make.com/t/parse-company-name-from-email/62045>\
**Category:** Beginner Questions\
**Tags:** regular-expressions\
**Created:** [November 21, 2024, 10:32am UTC](https://community.make.com/t/parse-company-name-from-email/62045 "2024-11-21T10:32:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julie\_de\_la\_Kethulle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/julie_de_la_kethulle/32/55684_2.png) [@Julie\_de\_la\_Kethulle](https://community.make.com/u/Julie_de_la_Kethulle)\
**Post date:** [November 21, 2024, 10:32am UTC](https://community.make.com/t/parse-company-name-from-email/62045/1 "2024-11-21T10:32:15Z")

</div>

### What are you trying to achieve?

Newbie here! making my first automation.  
What I’m building: pulling attachments from gmail (filter: gmail labeled it as an invoice) and putting it into a drive.

What I’m stuck on: nice-to-have, but I always have to open the invoice once it’s in the drive folder, check who the invoice is from and replace the generic attachment name (F09EE or whatever their system generates) to something I can read (Invoice Miro for example).

The name of the sender is often ‘support/billing’, so I figure the most reliable way to do this is to parse (if that’s the right word for this) a part of the email address, which ends in .com/.be/.io/… How might I get Make to name the file 'email address MINUS all the stuff before and including @ and EXCLUDING everything behind the dot separator?

Any advice is appreciated!

### Steps taken so far

I have already tried to play around with it, but I’m not a coder

---

<div class="post-metadata">

**Author:** ![OmriNyx](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/omrinyx/32/55914_2.png) [@OmriNyx](https://community.make.com/u/OmriNyx)\
**Post date:** [November 23, 2024, 12:12pm UTC](https://community.make.com/t/parse-company-name-from-email/62045/2 "2024-11-23T12:12:53Z")

</div>

You can do split(split(Email\_address;@);.) then GET the second result of the inner split (everything after the @) and the Get the 1st value from the the outer split (everything before the dot).

You can also do it using Regex and maybe other easier tools ☺

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [February 21, 2025, 12:16pm UTC](https://community.make.com/t/parse-company-name-from-email/62045/3 "2025-02-21T12:16:45Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


