Parag Baxi

How to perform a negate regex in Asset Search

Discussion created by Parag Baxi on Aug 28, 2012
Latest reply on May 19, 2014 by Kyle Rohan

I found this useful for when one wants to tag hosts that do not contain "Windows".

 

Where: Asset module --> Tags --> Create Tag --> Tag Rule --> Rule Engine = Operating System Regular Expression --> Regular Expression field

 

Expression used (with ignore case enabled) =

 

^(?!windows).*$

 

[ x ] Ignore Case

 

new regex.png

Outcomes