Remove lines containing string using Regular Expression
Using Visual Studio Code In Visual Studio Code, to delete the entire line make your regex something like: ^.*(word1|word2).*\n? In the above regular expression, ^ - Matches the beginning of line . - Matches any character (except newline character) * - Match 0 or more repetitions of the preceding character, [...]