Regex in event rule not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2023 10:27 PM
I am trying to write a event rule. I need to filter it on the basis of event description. If the description dose not contain IP address then this rule should execute.
Regex is : .*^(?!.*\b(?:\d{1,3}\.){3}\d{1,3}\b).*
I validated this on https://regex101.com/
But the rule is executing in both the conditions. Please guide.
- Labels:
-
Event Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2023 11:22 PM - edited 06-25-2023 11:25 PM
can u also post event rule conditions and details like this
some limitations on regex in service-now
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0690762
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0749814
Regards
RP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2023 11:24 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2023 11:52 PM
is this an expected out put of regex when i just put 2 octets in IP
Regards
RP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2023 12:52 AM
Hi Rahul,
Yes, this is expected.