I have the two below lines as output
1 ID_1 INSV enabled Activated 12.345.67.89
2 ID_2 SYSB Disabled Activated 12.345.67.89
I want to match the lines that should NOT have SYSB but it should have Activated. I am writing the below regex
ID_\d+\s+(?!SYSB)\s+\w+\s+Activated
It ignores the SYSB line, but its not capturing INSV line too. How to solve this regex?