Email to HTML with some edits

Hi All

I receive some newsletters by email (usually in HTML format) and I would like to delete some content (hi there etc.) at the start and end of the email and then post the html file to my web site

Is this possible, any tips/examples would be appreciated

Thanks

Hey there,

you can use a regular expression to retrieve the data you want from the entire HTML body.

1 Like

Welcome to the Make community!

You have not yet provided sufficient information to demonstrate the problem that would allow us to reproduce the scenario, and advise on suitable solutions.

Since there are no examples provided, one general solution is that you could prompt an AI module to remove salutations and signatures from the email content.

When reaching out for assistance with text operations, it would be super helpful if you could share the actual text you’re trying to match. Screenshots of text can be a bit tricky, so if you could copy and paste the text directly here, that would be awesome! It ensures we can run it against test patterns effectively. If there’s any sensitive info, feel free to change it to something fictional yet still valid by keeping the format intact.

Providing clear text examples saves time on both ends and helps us give you the best possible solution. Without proper examples, we might end up playing a guessing game, and nobody wants that as it is a waste of time! You are more likely to get a correct answer faster. So, help us help you by sharing those text snippets.

Please format the example text this way to preserve line breaks and special characters:

These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Ok thanks for letting be know how to add the content

I have added the content below (which also has images/videos in the original email)
And I would need to remove everything before (and including) Nikki x
And I would want “ESNS 2025 LEADS TO NEW BOOKINGS: FIRST 84 SHOWS CONFIRMED FOR 55 ARTISTS THROUGH EUROPEAN TALENT EXCHANGE” to be the heading of my post.
And then i would want to remove everything after (and including -ENDS-)

European Talent Exchange, the renowned European music Exchange programme, is proud to reveal the first 84 shows confirmed for 55 Artists Through European Talent Exchange
 
Full info below. 
Nikki x



ESNS 2025 LEADS TO NEW BOOKINGS: FIRST 84 SHOWS CONFIRMED FOR 55 ARTISTS THROUGH EUROPEAN TALENT EXCHANGE

With many European Talent Exchange partner festivals already unveiling their initial line-ups, the spotlight now turns to the emerging European artists set to make waves across the continent and beyond this summer. Among the first confirmed names are Judeline from Spain, UK artists Luvcat and Alessi Rose, Makrohang from Hungary, Lavina from Serbia, We Hate You Please Die from France, Cliffords from Ireland, and Bassolino from Italy. These rising talents represent the diverse and vibrant sound of Europe, ready to captivate audiences on some of the biggest festival stages.
 
ESNS25 artists, who automatically join European Talent Exchange (Exchange), are closely tracked by ESNS Radar, which monitors the bookings at 130 partner festivals. Learn more on where these promising artists will perform, both within and beyond their home countries.

Luvcat at ESNS2025 by Olivier
 
European Talent Exchange: results so far
So far in 2025, Exchange has presented a total of 84 shows featuring 55 artists from 18 countries, booked by 45 festivals across 21 countries.

The most booked artists are:
1.Luvcat (England) - 7 bookings
2.Alessi Rose (England) - 6 bookings
3.Judeline (Spain) - 4 bookings
Big Special (England) - 4 bookings
4.We Hate You Please Die (France) - 3 bookings
Cliffords (Ireland) - 3 bookings
Loverman (Belgium) - 3 bookings
Soft Launch (Ireland) - 3 bookings
5.Lucy Dreams (Austria) - 2 bookings
Kara Delik (Germany) - 2 bookings
Paula Dalla Corte (Germany, Switzerland) - 2 bookings
Antony Szmierek (England) - 2 bookings

The most booked acts by country are:
1.England: Luvcat - 7 bookings
2.Spain: Judeline - 4 bookings
3.France: We Hate You Please Die - 3 bookings
Ireland: Cliffords - 3 bookings
Belgium: Loverman - 3 bookings
4.Austria: Lucy Dreams - 2 bookings
Germany: Kara Delik - 2 bookings
Switzerland: Paula Dalla Corte - 2 bookings

The top festivals with the most booked Exchange artists are:
1.Ment Ljubljana (Slovenia) - 9 bookings
2.The Great Escape (England) - 5 bookings
3.Tallinn Music Week (Estonia) - 4 bookings
Maifeld Derby (Germany) - 4 bookings
4.Best Kept Secret (Netherlands) - 3 bookings
5.Montreux Jazz Festival (Switzerland) - 3 bookings
Mad Cool Festival (Spain) - 3 bookings
Lowlands (Netherlands) - 3 bookings
Orange Blossom (Germany) - 3 bookings
Sharpe Festival (Slovakia) - 3 bookings
Zermatt Unplugged (Switzerland) - 3 bookings

For the complete list of 2025 European Talent Exchange Results, visit ESNS Radar.
 
A joint force of the music ecosystem
European Talent Exchange is dedicated to helping European artists secure bookings at festivals across and beyond Europe. In collaboration with YOUROPE and the European Broadcasting Union (EBU), the initiative connects artists to a network of around 130 partner festivals and benefits from the support of 31 media partners to amplify their promotion. 
Additionally, European Talent Exchange unites 23 members and five associated partners, including 26 export offices, to create a powerful network for talent development. The platform is coordinated by ESNS (Eurosonic Noorderslag). European Talent Exchange is co-funded by the Creative Europe programme of the European Union.
 
You can find all the information about European Talent Exchange on the website.
 
About ESNS
ESNS (Eurosonic Noorderslag) is an independent platform that puts European music talent in the global spotlight. ESNS offers European artists career-defining opportunities to break through and become tomorrow's headliners.
Every January, Groningen (NL) transforms into the beating heart of the European music industry when ESNS hosts its showcase festival and music conference. Only the freshest European acts are invited to perform for passionate new fans and industry pros, helping them pave the way to the stages of major European music festivals and venues.
Founded in 1986, ESNS will celebrate its 40th anniversary in 2026, which will take place from January 14 - 17 in Groningen, the Netherlands.
Pre-register for ESNS26 here.
 
-ENDS-
Notes to Editors:
For more information on ESNS & all press requests please contact

Welcome to the Make community!

You can use a Text Parser “Match Pattern” module with this Pattern (regular expression):

^(?<title>.+)\n\s*(?<content>[\w\W]+)$

Proof https://regex101.com/r/Q9COu6/1

Important Info

  • :warning: Global match must be set to NO!

Screenshot

Screenshot_2025-04-02_100435

Output


For more information, see the Text Parser page in the Make Help Center:

Match Pattern
The Match pattern module enables you to find and extract string elements matching a search pattern from a given text. The search pattern is a regular expression, which is a sequence of characters in which each character is either a metacharacter, having a special meaning, or a regular character that has a literal meaning.

Module Export - quick import into your scenario

You can copy and paste this module export into your scenario. This will import the modules (with fields/settings/filters) shown in my screenshots above.

  1. Move your mouse over the line of code below. Copy the JSON by clicking the copy button on the right of the code, which looks like this:

  2. Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the editor.

  3. Click on each imported module and re-save it for validation. There may be some errors prompting you to remap some variables and connections.

JSON module export — paste this directly in your scenario

{"subflows":[{"flow":[{"id":2,"module":"regexp:Parser","version":1,"parameters":{"pattern":"^(?<title>.+)\\n\\s*(?<content>[\\w\\W]+)$","global":false,"sensitive":true,"multiline":false,"singleline":false,"continueWhenNoRes":false},"mapper":{"text":"{{replace(1.text; \"/(^[\\w\\W]+?(?:info|below)[\\W\\w]+?\\n{2,}\\s*|\\s*-ENDS-[\\w\\W]+$)/g\"; emptystring)}}"},"metadata":{"designer":{"x":1308,"y":-1919,"messages":[{"category":"last","severity":"warning","message":"A transformer should not be the last module in the route."}]},"parameters":[{"name":"pattern","type":"text","label":"Pattern","required":true},{"name":"global","type":"boolean","label":"Global match","required":true},{"name":"sensitive","type":"boolean","label":"Case sensitive","required":true},{"name":"multiline","type":"boolean","label":"Multiline","required":true},{"name":"singleline","type":"boolean","label":"Singleline","required":true},{"name":"continueWhenNoRes","type":"boolean","label":"Continue the execution of the route even if the module finds no matches","required":true}]}}]}],"metadata":{"version":1}}

Note: Did you know you can reduce the size of blueprints and module export code like the above, using the Make Blueprint Scrubber?

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.