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: 

Viewing 2 reply threads
  • Author
    Posts
    • #90963
      Paul Williams
      Participant

      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.

    • #90966

      ^Report.+\r

      Kai

    • #90967
      Paul Williams
      Participant

      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 :)

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>