My scenario is I have a file that has the contents looking like this but longer. https://pastebin.com/q33wFdAX
I need to remove each occurrence of
If the category has data in there we don't want to remove it. So basically if I can just match this double line exact and invert like grep -v then I can output to a new file without those lines.
I will have more than just this category so I will need to be able to use several or statements. Example of the regex I'm using in notepad++ to accomplish this manually
Bonus points if you can get me a simple way to do this in powershell too, I'd like to be able to do this on either OS. I'm not extremely good with advanced regex, awk etc.