I have a news article which I need to edit up a bit. Basically, I need to search for all lines that do not contain characters t and h 2 or more times in a row and replace 4 letter words with character D in those lines. Have no idea where to start. For example, I have this text
Animals are multicellular eukaryotic organisms which form a biological kingdom Animalia.
Historically, Aristotle divided animals into those with blood and those without
And I want it to look like
Animals are multicellular eukaryotic organisms which D a biological kingdom Animalia.
Historically, Aristotle divided animals into those with blood and those without