i am looking for GREP help. I have an issue where i need to delete every line that contains [DELETELINE].
So that
[DELETELINE]
TestText
Test [DELETELINE] loremipsum
Example
[DELETELINE] loremipsum
loremipsum [DELETELINE]
[DELETELINE]
becomes
TestText
Example
I only can get parts of it to work. Like delete the line if [DELETELINE] is in the middle or in the beginning or at the end. But i need an expression that catches all cases.
Is that possible?
EDIT:
What i got is this:
^.+\[DELETELINE\].+\r
But this selects only the third line.