Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Global regex

Nikita Medvedev
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 8, 2024

Hello! I am setting up email integration for creating notifications. I am trying to build a regex to find occurrences, as the final message I receive comes as a string. How can I obtain all occurrences considering that the /g (global) flag does not work in regex?

1 answer

1 vote
Egor
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 9, 2024

Hey Nikita, 
Thanks for reaching out to Atlassian Community!

When creating regex patterns for Opsgenie email integration, it's important to note that Opsgenie regex does not support certain modifiers, like the global flag (/g). However, you can still use regex to match all relevant portions by structuring the pattern to capture everything you're looking for.

If you need more guidance, you can refer to the following public knowledge base articles for working with Opsgenie regex in email integration:
https://support.atlassian.com/opsgenie/docs/integrate-your-email-with-opsgenie/ 
https://support.atlassian.com/opsgenie/docs/regular-expressions-for-improved-alert-filtering/

These resources should help you understand how to construct the proper regex pattern that fits within Opsgenie's current capabilities.

Best Regards,
Egor

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events