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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.