a regex
a regex
(OP)
Hello,
I want a regex (with OR as below) also matching "md" lines in which 3rd column is not a string "active". Is it possible?
https://regex101.com/r/LxD8t2/2

I want a regex (with OR as below) also matching "md" lines in which 3rd column is not a string "active". Is it possible?
https://regex101.com/r/LxD8t2/2

RE: a regex
Sadly you can not say "not the string" like that. For negation the best option is negative look-ahead assertion : (?!active). But that being a zero-width assertion, you will still need to match whatever is there with something generic, like .+ or .+?. So the 3rd part of you expression would look like something this :
CODE --> expression
But in practice I would probably use something different.
Feherke.
feherke.ga