Extract latest reply from email message

Hey everyone

I’m trying to drop the “quotes” that are created due to email actors keep replying.
Is there any known way ?

Incoming Message:

What is your MC number ?
  

On Fri, Mar 21, 2025 at 1:51 PM Salauat Erejepov <[[email protected]](mailto:[email protected])> wrote:

> Hello, team!
>
> Need details on the **Ontario, CA** to **W Babylon, NY**, **03/06/2025**
>>
> Best Regards !!!
>

Should get:
What is your MC number ?

Information on your n8n setup

  • n8n version: 1.73,0
  • **Database (default: SQLite):**Postgres

hello @yow1da

you can try with some filtering, but it may not work for some cases

Here is a regex-based solution that works with quite a number of use cases.

@yow1da, if you have your issue resolved, feel free marking @barn4k’s post as a :white_check_mark: Solution as, to me, it suggests a legit solution relevant to your ask.
This way the topic will be marked as resolved and future readers will start reading solutions in order of their appearance.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.