Skip to content
  • There are no suggestions because the search field is empty.

How do I create regex to exclude some entities and include others?

Please see the examples below.

Case sensitive to exclude everything with brisbane and include everything with rtr:


^((?!.*brisbane.*).*rtr.*)*$

Case insensitive to exclude everything with brisbane and include everything with rtr:


^((?i)(?!.*brisbane.*).*rtr.*)*$

Below is an example of using this regex to create a group of all devices with rtr in their sysName except Brisbane:

Screenshot 2025-03-07 101356