

Robust fraction grep: Will find fractions, but leave out dates such as 6/98, 9/11, or. or )įind any four digits (the curly brace expression is not found in the InDesign menu) Milk Chocolate, milk chocolate, milk Chocolate, Milk chocolateĬolor or colour (the ? means the previous character or expression may or may not be there)Īny string of letters that starts with c and ends with e, such as chocolate, Chocolate, case, coarse, etc.Īny whole word that begins with c and ends with eĮxactly the same as above, but using \b for ‘word boundary’ Always look for that flyout menu! Expressing Or (Milk|Dark) Chocolate Let’s focus the comments below on solutions, rather than questions.Īnd remember: you don’t need to memorize all these codes. Note: Please don’t use the comments below to ask “what’s the grep code for…”? Instead, use our forums to ask those kinds of questions.

#Grep multiple strings update#
Or, if I think of new ones, I’ll just update this table from time to time. If it’s really helpful, I may steal it and add it to the table in this blog post. Then, if you have a grep code you want to share with others, feel free to add it to the comments below. You may need to tweak it a little, or combine some of these to achieve your task. But you don’t always have to figure out all the grep codes yourself! Use the table below to find a grep expression that is close to what you’re looking for. It shows up in several places in InDesign, notably the Find/Change dialog box and the GREP Styles feature. GREP is an incredibly powerful technology for finding and replacing text.
