Delete line starting with a given string
- This topic has 2 replies, 2 voices, and was last updated 7 years, 3 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Delete line starting with a given string
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Delete line starting with a given string
Tagged: GREP
Hi, I am having another total mental block when trying to get GREP to delete a line that starts with a given string e.g:
Report from Fred
Documents from Bert
Report from Harry
Pages from Anne
Basically, I want to be able to delete the lines that start with the string “Report”
I would be very grateful if someone could help me with this.
Many thanks in advance.
^Report.+\r
Kai
Doh!….I knew it was simple enough and for the love of it couldn’t think what it was!!
Thank you so much Kai – appreciated as always :)
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!