Hello,
I want to match a string if it contains the word 'Error' but don't match if the string contained 'Minor Error' or 'Small Error'
I have tried the following but its not working
"Minor Error" | select-string -pattern "(?!Minor\sError|Small\sError)Error"
Any ideas?