Use Regex in Event Management Rule

Prabhjyot Sing1
Mega Guru

Hi,


I am trying to create an event management rule where I want to match a Regex condition.

 

But while adding the Regex condition the event rule is not matching the event.

Cannot find any document regarding this, and previous community posts say that the Match Regex is not supported in Condition builder, is this still the case ??

 

PrabhjyotSing1_0-1699534629391.png

 

1 ACCEPTED SOLUTION

Prabhjyot Sing1
Mega Guru

My regex worked after I removed the "^" character out of my regex.

View solution in original post

4 REPLIES 4

Sandeep Rajput
Tera Patron
Tera Patron

@Prabhjyot Sing1 According to the community article https://www.servicenow.com/community/developer-forum/matches-regex-in-condition-builder/m-p/2126217 Match Regex is not supported in condition builder. I also tried to use it in the past and it didn't work for me either.

OlaN
Giga Sage
Giga Sage

Hi,

I tried creating a Business rule that uses match regex in condition builder, and it worked as expected, so I guess it works in some circumstances.

Can't say what's wrong in your scenario though.

Prabhjyot Sing1
Mega Guru

Thanks @OlaN & @Sandeep Rajput ,

 

I will try to test my Regex in a business rule, to see if only Event Rules are not supporting the regex or if am I doing something wrong with the format.

Will update here with my findings.

Prabhjyot Sing1
Mega Guru

My regex worked after I removed the "^" character out of my regex.