EBS: Regular Expressions (Regex) for the Email Ingestion Premium Feature in Everbridge Suite

lock-solid.svg

NOTE:

This article describes an advanced topic that requires some background in computer programming, and please note that the Technical Support Team cannot assist with the development or troubleshooting of customer code.

For additional information on regular expression (regex), please see the following articles.

Topic:

Regular expressions for the Everbridge email-ingestion premium feature.

Description:

A regular expression (regex) is a formal computer language used for developing advanced search patterns.

Everbridge's email-ingestion feature (located under Settings > Everbridge Open > Email Ingestion) enables the ability to launch Incident Templates automatically and gather Incident Variables by searching within the Subject, Body, or Attachments of incoming emails. These Incident Variables can be identified within the email by specifying the text immediately before and after the variable value using one of the following methods:

  1. Toggling Regular Expression to OFF and using the Text before and Text after fields;
  2. Toggling Regular Expression to ON and entering the search string as a regular expression.
User-added image

User-added image


User-added image

Regular expressions can also be used to determine the Incident Template contacts from the content of the incoming emails by selecting the override template contact selections option and then specifying where to find the Individuals, Groups, or Rules identified within the email.

User-added image


User-added image

Common Regular Expression Use Cases for Email Ingestion

Here are some helpful regex patterns for specific email ingestion scenarios:

  • Capturing the entire email text: When some text is being cut off in your email ingestion, use the pattern (.*) to capture the entire email content into a single variable. This can then be placed as the body of your outgoing message in the template, ensuring all text from the incoming email is preserved.
  • Extracting the first line of text: When there are no clear starting indicators in an email, regular expressions can help extract specific lines or sections of the email body, even when traditional 'before and after' methods don't work.
  • Alternative to subject line or text markers: In cases where standard text markers are unavailable for defining the start of an email body, regular expressions provide more flexibility in capturing desired content by allowing you to define custom rules for text extraction.

For complex regex implementations, consulting with a developer familiar with regular expressions may be beneficial to create the most appropriate solution for your specific email ingestion needs.

Was this article helpful?
0 out of 0 found this helpful

Article Feedback


While we can’t respond to you directly, we’d love to know how we can improve the article.

Please sign in to leave a comment.