GREP for messy text

Learn / Forums / General InDesign Topics / GREP for messy text

Tagged: 

Viewing 2 reply threads
  • Author
    Posts
    • #77012
      Rivkah Lewis
      Member

      This is a problem I’d love to figure out on my own, but I’m too overwhelmed with work to put my head to it :)

      I’ve designed a cookbook. The first line of the page has the recipe “stats”:

      category [ex. meat] (makes – sometimes says this, sometimes doesn’t)(about) # servings/items active time: # minutes total time: # hours/minutes

      Each of the above is separated by a custom made bullet (clipboard contents) in the color of that chapter of the cookbook.
      I’ve given each its own style name. Ex: Top Stats Salads. (also, because I have a “Next style” built into it.)

      The problem is, in the file I placed into ID, these stats have no pattern. Sometimes they are separated by a single space, sometimes by numerous spaces, sometimes by a tab, etc. I thought maybe I could use a regular search and replace to clean it up to uniform something and then use grep to define a pattern into which I could insert the bullets. (Dwayne, where are you? You’re good at that!!)

      If anyone has some grand idea, I’d be much appreciative!

    • #77014
      David Blatner
      Keymaster

      Well, you need to find some kind of distinct pattern. A single space will be almost impossible to identify. Multiple spaces or multiple tabs can be cleaned up more easily. (See the pop-up menu at the top of the find/change dialog box.)

    • #77015
      Rivkah Lewis
      Member

      Right now there certainly is no distinct pattern.
      The q then is, will it take longer to make a pattern or to just go through manually. The recipes only take up about 100 pages of the book. So a pain, but maybe just easier to do one by one.

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