~%RegexExtract

Note. The Shared Email Templates for Outlook documentation has moved to our new website: email-templates.app.

Description

This macro searches the specified fields of the current email message, appointment, or meeting for all occurrences of the specified regular expression and inserts them (separated by the specified separator) into the current macro position.

Syntax

~%RegexExtract{
     "fields":["from", "to", "cc", "bcc", "subject", "location",
        "recipient_first_name" , "recipient_full_name" , "recipient_last_name" ,
        "sender_first_name" , "sender_full_name" , "sender_last_name" ,
        "body"],
     "regex":"regexvalue",
     [ "separator":"textvalue" ] // default separator is comma
}

Works for

  • Email templates.
  • Appointment and meeting templates.

Examples of use

~%RegexExtract{"fields":["body"],"regex":"(o|O)rder ID \\d{7}","separator":", "}

Please contact us here

Our working hours:
Pacific Time (PT) 11:00 PM (previous day) – 2:00 PM
Central European Time (CET) 08:00 - 23:00
Eastern Time (ET) 2:00 AM – 5:00 PM
Central Time (CT) 1:00 AM – 4:00 PM
Pacific Time (PT) 11:00 PM (previous day) – 2:00 PM
Australian Eastern Daylight Time (AEDT) 6:00 PM – 9:00 AM (next day)
If you want to attach files (e.g. screenshots or log files), it will be possible right after you send this form and we automatically create a support ticket for you.

Thank you for contacting us!

We'll get back to you shortly. You should receive a confirmation email within a few minutes. If it doesn't arrive, please resend your message and make sure your email address is entered correctly.