Custom RegEx in Transform and compose section of event rule not working

Ganeshm1
Tera Guru

Hi All,

I have configured custom RegEx to extract the required information in an event. 
Whenever I am trying to add the below RegEx expression in event rule, its asking two fields to select. 

Regex is working as expected in Regex101.com (Green color background is the one which I need as output)

Ganeshm1_1-1725957120472.png

 

In instance its asking two expression to select or add while i am using the custom regex. Can anyone help me how I can address this?

Ganeshm1_0-1725957067239.png

 

Regards,
Ganesh

1 ACCEPTED SOLUTION

Hey,

have you tried matching it without any grouping?

Something like: \S+\s+\S+\s+\S+\s+(\S+)

 

Maybe the issue is something else.


Regards

Fabian

View solution in original post

5 REPLIES 5

Glad i could help, sometimes RegEx in ServiceNow is weird.