I know it’s possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, I’d like to know if it’s possible to match lines that don’t contain a specific word (e.g. hede) using a regular expression.
hoho hihi haha hede
grep "<Regex for 'doesn't contain hede'>" input
hoho hihi haha