I have these lines:
MyString 33
MyString 10
MyString 3
MyString 5
I want to get match on all the lines that doesn't have the specific number: 3.
Therefore, I need to get match on these numbers:
MyString 33
MyString 10
MyString 5
But not on:
MyString 3
This is what I tried:
MyString ^(?!3)
MyString ^(3)
MyString (^?!3)
MyString (^3)
But none of them worked.
I don't have much experience with regex.
I used this website for as a guide:
https://www.cheatography.com/davechild/cheat-sheets/regular-expressions/
I also read similar questions:
Exclude certain numbers from range of numbers using Regular expression
Exclude a set of specific numbers in a "\d+" regular expression pattern
But I still didn't understand how to do it.