I know it is possible to match for the word and using tools options reverse the match. (eg. by grep -v
) However I want to know if it is possible using regular expressions to match lines which does not contain a specific word, say hede?
Input:
Hoho
Hihi
Haha
hede
# grep "Regex for do not contain hede" Input
Output:
Hoho
Hihi
Haha