GREP for messy text
- This topic has 2 replies, 2 voices, and was last updated 8 years, 9 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / General InDesign Topics / GREP for messy text
Learn / Forums / General InDesign Topics / GREP for messy text
Tagged: GREP
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!
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.)
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.
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!