Using Regex for specific filter: Exclude a string
In this example we want to exclude everything that contains the string server.
To do this, we will use the following Regular Expression:
Breakdown of Regex elements used
|^||Beginning of the string|
|(?!)||Negative look ahead. Specifies a group that cannot match after the main expression.|
(i.e. if it matches, then the result is discarded)
|.||Matches any character except line breaks|
|*||Match 0 or more of the preceding token|
|$||End of the string|
You can get the same result by excluding each character of the string.
In this example we will use Filter by Regular Expression to exclude everything that contains the string server in the Type column.
Click on the filter icon and select Filter By Regular Expression.
Having used the expression ^((?!.*server.*).)*$ to filter the column, all lines that contained the string server have now been excluded.
Excluding multiple strings: