Learn GREP from The InDesigner on Lynda.com
My first course for Lynda.com—InDesign CS4: Learning GREP—is now live on the Online Training Library. This 3-hour, 45-minute title is the first comprehensive, video-based course to be offered about using GREP specifically in InDesign. Starting with an explanation of what GREP is, and how to write expressions using metacharacters, InDesign CS4: Learning GREP covers both GREP Find/Change (CS3 and CS4), and GREP Styles (CS4) in depth.
Exercises demonstrated in the course include:
- describing figure references in parentheses without styling the parentheses themselves
- cleaning up inconsistent U.S. phone number formatting
- describing every e-mail address in the world with one expression
- simultaneously applying two or more character styles to the same text
- dynamically preventing orphaned words at the end of a paragraph
- converting and reformatting spreadsheet data from Excel to produce directory listings
- inserting anchored objects with Find/Change
- customizing a text cleanup script
Viewing the full course requires a paid Lynda.com account. However, 9 of the movies in the course are available for non-members to preview. For a 24-hour free pass to the Online Training Library, click here.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


November 23rd, 2009 at 8:23 am
Hi Michael. Congrats for making it on lynda.com! It’s an awesome site & definitely worth the money. Ciao Z
November 25th, 2009 at 3:12 pm
Excellent course. I the course earlier this week and I’d highly recommend it to anyone wanting to learn more about GREP.
November 30th, 2009 at 1:16 pm
Wonderful course, explained in English, with tips about undocumented GREP metacharacters.
So, I have a question. Is it possible using GREP to find the first instance of a word and style it one way, but find further instances of a word and style it differently? Client wants the first instance of a term styled, but not any further occurrences. I can’t make head or tail out of UNIX guides, but there did seem to be a /m metacharacter for first instance. Any help would be appreciated.
December 1st, 2009 at 8:46 am
Paeon
It would be great if your could set Nested Style to an exact “Word” or “Small Phrase”. Anyone know if this is possible?
December 1st, 2009 at 9:09 am
@Paeon — The only workaround I can think of is to put a unique invisible character around the first instance of the word/phrase (like an End Nested Style character), but not around any of the others. Then, write a GREP expression that requires that unique character be present using Positive Lookahead and/or Lookbehind to apply the “first instance” style. Another GREP expression could describe the word/phrase but only if it isn’t preceded or followed by that unique character (using Negative Lookahead and/or Lookbehind). There’s no GREP expression that determines “first instance” in one step.
December 1st, 2009 at 9:11 am
@lowjackson — GREP Styles exist to get around exactly that limitation of Nested Styles. If you need to find every instance of a product name (i.e. “SuperWidget”), just create a GREP Style using the text “SuperWidget” and choose the appropriate character style to be applied to it.
December 1st, 2009 at 3:05 pm
Thanks, Michael. I’ll give that a try.