How to Extract Email Addresses from a Text String

Learn how to extract email addresses from text strings using Make.com in this step-by-step guide by Joshua Thompson ✨
Illustration of a smiling person standing next to a floating blue envelope with documents inside, lifted by black and blue balloons, representing email automation or extraction.

Hide Me

Written By

Joshua
Reading time
» 5 minute read 🤓
Share this

Unlock exclusive content ✨

Just enter your email address below to get access to subscriber only content.
Join 114 others ⬇️
Written By
Joshua
READING TIME
» 5 minute read 🤓

Un-hide left column

Step-by-step walkthrough on setting up the Text Parser (Regex) module in Make.com to extract email addresses effectively.

Make.com offers a versatile Text Parser module that allows users to define patterns for extracting specific data from text. By leveraging regular expressions (regex), you can accurately identify and extract email addresses embedded within any text. This approach not only enhances data accuracy but also automates the extraction process, saving time and reducing manual effort.

By the end of this guide, you’ll be equipped with the knowledge to implement automated email extraction in your workflows, enhancing efficiency and data management capabilities.

In this article 🔥

Introduction

Extracting email addresses from text strings is a common requirement in data automation, whether you’re processing user input, scraping data, or organising contact lists. Manually sorting through large amounts of text can be tedious and error-prone. I’ll introduce you to a concept called regular expression and how we can use it in make.com.

See the below code block? Looks intimidating, right? Don’t panic. You’ll understand what this is and where to use it in make.com. If you know what you are doing, then just go ahead and copy it, and add it to a text parser module!

				
					([a-zA-Z0-0_.]*@[a-zA-Z0-0_.]*\.[a-zA-Z0-0_.]*)
				
			

The Video Guide

Watch the video below for a step-by-step guide, or keep reading if you’d rather follow the written instructions!

Use Cases 🤔

Extracting email addresses from text strings has numerous practical applications across different industries. For businesses, it can streamline lead generation, automatically pulling emails from enquiry forms, chat logs, or support tickets to build a contact list.

In marketing automation, extracting emails from customer feedback, surveys, or social media interactions allows for better audience segmentation and targeted campaigns. Customer support teams can use this method to capture email addresses from unstructured data, such as support tickets or website submissions, ensuring quick and efficient responses.

My personal favourite is for sales representatives by integrating an email address within a channel on Slack or Microsoft Teams. 

Image this – you’ve got a sales team that are out on the road generating leads. We all know that sales people aren’t great at updating a CRM system! Why not create a Slack channel where they can just fire their email address in a channel, extract it and then create an automated follow up. 🔥

Web Scraping

Web scraping is a powerful technique for collecting data from websites, and one of its most common applications is extracting email addresses. Businesses and researchers often use web scraping to gather contact details from directories, forums, and publicly available web pages. This can be particularly useful for lead generation, competitor analysis, or customer outreach.

By integrating web scraping with Make.com, you can automate the process of pulling email addresses from structured or unstructured web data. Using tools like the Text Parser module and regular expressions (regex), you can filter and extract only valid email addresses while ignoring irrelevant content.

However, it’s important to follow ethical and legal guidelines when scraping data. Always ensure you have permission to collect email addresses and comply with data protection laws such as GDPR and CAN-SPAM. Responsible web scraping, when done correctly, can significantly enhance automation workflows and data collection strategies. 🚀

Regular Expression

Regular expressions (regex) are a powerful tool for identifying and extracting specific patterns within text. When it comes to email extraction, regex allows you to accurately locate email addresses within large text blocks, ensuring precise and automated data retrieval.

In Make.com, you can use regex within the Text Parser module to define a pattern that matches valid email addresses. My preferred regex for email extraction is:

[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}

This pattern breaks down as follows:

  • [a-zA-Z0-9._%+-]+ – Matches the username part of the email, allowing letters, numbers, and special characters like ., _, %, +, and -.
  • @ – Ensures that the extracted text includes the “@” symbol, which is required in email addresses.
  • [a-zA-Z0-9.-]+ – Matches the domain name, allowing letters, numbers, and dots.
  • \.[a-zA-Z]{2,} – Ensures the domain extension (e.g., .com, .org, .uk) is at least two characters long.


If you are interesting in delving a little further, visit regex101.com to test out your own regular expression.

The Steps

  1. Open a new scenario in make.com.
  2. Select your data source (e.g a HTTP request that visits a website you want to scrape or a Slack channel where users post email addresses and text).
  3. Grab a ‘Text Parser – Match Pattern’ module.
  4. In the ‘pattern’ box, enter the regular expression (further up this page – in the code box).
  5. Map your data source field in the ‘text’ box.
  6. Test and enjoy!


Once you complete this initial process, your brain should start working and start to think of exciting use cases for your business 🙌

Screenshot of a Make.com automation workflow with an HTTP request module and a Text Parser module configured to extract email addresses using regex.
Automating data extraction with Make.com! ⚡ This workflow fetches data via an HTTP request and extracts email addresses using regex in the Text Parser module.

Conclusion

Extracting email addresses from text strings is a crucial task for businesses, marketers, and data analysts looking to streamline workflows and automate data collection. By leveraging Make.com and its powerful Text Parser module, you can efficiently identify and extract emails using regular expressions (regex), eliminating the need for manual data processing.

Throughout this guide, we’ve explored how to set up Make.com, configure the Text Parser module, and apply regex patterns to accurately extract email addresses. Whether you’re processing form submissions, scraping web data, or automating lead generation, these techniques will help you save time, reduce errors, and improve efficiency.

📺 Watch the tutorial: Extracting Email Addresses from a Text String | Make.com

Last Updated

February 15, 2025

Category
Views
372
Likes
1

You might also enjoy 🔍

Minimalist digital graphic with a yellow-orange background, featuring 'Investing' in bold white letters at the centre and the 'Joshua Thompson' logo below.
Author picture
Caledonian’s strategic pivot into financial services, fuelled by fresh capital and two new investments.
This article covers information on Caledonian Holdings PLC.
Minimalist digital graphic with a yellow-orange background, featuring 'Investing' in bold white letters at the centre and the 'Joshua Thompson' logo below.
Author picture
Explore Galileo’s H1 loss, steady cash, and a game-changing copper tie-up with Jubilee in Zambia. Key projects advance with catalysts ahead.
This article covers information on Galileo Resources PLC.

Comments 💭

Leave a Comment 💬

No links or spam, all comments are checked.

First Name *
Surname
Comment *
No links or spam - will be automatically not approved.

Got an article to share?