Here is a way that removes the lines containing "YOURTEXT" completely:
.*YOURTEXT.*[\r]?[\n]
(replace YOURTEXT with your text)The given regular expression matches both Windows and Unix end of lines.
If your text contains characters that have a special meaning for regular expression, like the backslash, you will need to escape them.