: Indesign grep replace question 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
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.
More posts by @Dunderdale640
1 Comments
Sorted by latest first Latest Oldest Best
I think i found the answer
the following grep works for all cases
^.*[DELETELINE].*(r?|n?)
^ is beginning of a paragraph
r and n are different types of linebreaks so everything should be catched.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.