Tip of the Week: Making White Space Characters Easier to Work With in GREP
How to make whitespace characters visible in GREP expressions in InDesign.
This InDesign tip on making white space characters easier to work with in GREP was sent to Tip of the Week email subscribers on December 28, 2017.

Sign up now and every week you’ll get a new tip, keyboard shortcut, and roundups of new articles, plus exclusive deals sent right to your Inbox!
Just scroll down to the bottom of this page, enter your email address, and click Go! We’ll take care of the rest. Now, on with the tip!
By Peter Kahrel
Space characters are often not so easy to spot in GREP expressions. To make them visible in your code, use \x{0020}, which is the Unicode notation for the space character. Or use the code , which stands for any white space (including paragraph breaks and tabs). For example, set[-]?up has the same meaning as set[- ]?up but is much clearer since someone looking at the code doesn’t have to guess if there’s a space there, or what is meant by the invisible space after the dash.
This article was last modified on July 25, 2019
This article was first published on January 2, 2018
Commenting is easier and faster when you're logged in!
Recommended for you
Find More Than One Paragraph with GREP
GREP is, by default, set up to find text inside a paragraph. That is, if you sea...
Tip of the Week: Making Space Characters Visible in GREP
This InDesign tip on making space characters visible in GREPÂ was sent to Tip of...
How to Find Hanukkah in InDesign (no matter how it’s spelled)
No matter how you spell it, you can find this holiday in your InDesign documents...
