Regex How to Include and Exclude in same expression.
Select all hosts that have <abc> but should not have <nim> in them.
This can be required in Distribution manager, nas alarm filters etc. You can use the following regex to include certain characters in a name while excluding those that have certain characters you don't want to include.
Examples to include:
abchyd
zyabc2
zyabc
Examples to exclude:
zyabcnimbu
zynimabcbu
If you want to get the ones which have "abc" but not "nim" in them, use the following regex:
/^(?!.*nim).*abc.*/