GREP in InDesign

Errata for GREP in InDesign

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
ch 16
electronic version; position unknown

\s finds all InDesign's spaces: the space character, en and em dashes, and all the thin spaces (thin, half, quarter, etc.).

I believe the intention was to say

Mark Suggs  Aug 03, 2009 
ch 21
7th paragraph with heading: $

End of paragraph. Example: [^\.]$ finds all paragraphs that do not end in a period

This example appears to contradict the statement at the very end of Chapter 18:

Mark Suggs  Aug 03, 2009 
ch 25
end of 2nd paragraph

For example, to find all words in a text with any number of vowels between b and l, use b[aeiou]+t. This finds bit, bat, boat, beaut, etc.

should say:

Mark Suggs  Aug 03, 2009 
ch 36
before last paragraph

The last 3 paragraphs are:
This replaces Jean-Louis with J.-L. But now we don't match single first names like James any longer, so we need to make double first names an option. We can do that by enclosing the whole second part in parentheses and adding a question mark:

Find what: (?x) ^ (\u)\l+ ( (-\u) \l+) ?

As you can see, we now have three sets of parentheses: the first, (\u), the second, ((-\u)\l+), and third, (\u) embedded within the second. This means that we have three back-references, which are counted as we listed them here. (Recall that the free-spacing modifier, though also in parentheses, is not considered a group and does not take part in the referrer count.) When a group is embedded within another, the embracing one, so to speak, is counted first, the embedded one next. In our example $2 refers to Louis or Ting, $3 to -L or -T. In the replacement string, we therefore need the first and the third referents:

Change to: $1.$3.

This nesting of references will occur frequently, so you need to be vigilant. This is also one of the reasons why you should always test expressions like these on a copy of a working document. InDesign's Undo is excellent, but don't put yourself at its mercy.

The Change to will result in two periods after a name that is not hyphenated, so the situation the option in the Find statement sets out to correct isn't corrected.

Mark Suggs  Aug 03, 2009 
Page 46
The line before the 'Lookaround' heading

Please change "positiove" to "positive".

Peter Kahrel
Peter Kahrel
Oct 06, 2015