Help with 2 Replace Functions (nesting)

I need some help taking emails from Outlook and putting them into a SharePoint list. I currently have Outlook connected along with Sharepoint, but the body of emails are output as HTML so I included a HTML to text parser. This works pretty well.

The problem - some emails include previous messages, not just the most current. I have 2 different strings built that work, but I can’t get them to nest correctly. Please help!

image

Welcome to the Make community!

You can use the built-in function replace with this pattern:

e.g.:

/\s+(?:From: F3|On.+at.+wrote:)[\w\W]+/i

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


For more information, see Text Parser 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 (aka regex or regexp), 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.

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.