Reply To: GREP to Standardize "e.g.," and "i.e.,"

Home Page / Forums / General InDesign Topics (CLOSED) / GREP to Standardize "e.g.," and "i.e.," / Reply To: GREP to Standardize "e.g.," and "i.e.,"

#84324
Ari Singer
Member

This should be the code you’re looking for. It works for all the variations that you mentioned, including uppercase and lowercase.

\<[eE]\.?[gG]\.?,?(?= )

Following is the translation:

At the beginning of a word (\<)
Find an ‘e’ or ‘E’ ([eE])
Followed by a period (\.) which may or may not be there (?)
Folllowed by a ‘g’ or ‘G’ ([gG])
Followed by a period (\.) which may or may not be there (?)
Followed by a comma (,) which may or may not be there (?)
Which is then followed by a space, but don’t capture that space, AKA Positive Lookahead ((?= ))

This article was last modified on April 26, 2016

Comments (0)

Loading comments...