Regular expression to match string not containing a word

book

Article ID: 34987

calendar_today

Updated On:

Products

DX Infrastructure Management NIMSOFT PROBES

Issue/Introduction

Introduction / Summary: 

When creating filters using regular expressions in UMP, you need to use specific syntax or the regex will not work.

 

Instructions:

 

When creating filters using regular expressions in UMP, you can use the following syntax when trying to match everything except a certain word.

For Example, I create a custom dashboard in Dashboard Designer with an Alarm Widget. I want to create an alarm filter that does NOT include the probe ntevl. The syntax would be as follows...

/^((?!ntevl).)*$/

If you want to filter out multiple words or probes in this example, your regex would look like this...

/^((?!ntevl|net_connect|cluster).)*$/

Environment

Release:
Component: CAUIM