Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
The Special Characters menu and the metacharacters for searching table in the InDesign Help files don't give you a complete list of all the metacharacters you can use. Several wildcard metacharacters are left out altogether. Let's take a look at some of these undocumented wildcards and what they describe. I'm zoomed in on the second page of this layout and my text cursor is inside of this body text and I am going to right- click on the style named Body Text in the Paragraph Styles panel and choose Edit Body Text. I am going to go GREP Style and create a New GREP Style.
Once again, I'll choose the Yellow Highlight style, so that we can see what's going on on the page as I work. And when I click in here and my default is activated, as usual, but I want to leave that in here for now and quickly delete the plus at the end of that any digit metacharacter. So, it's just any digit and we can see that applied on the page. It really doesn't change anything. But if I select this lowercase d in the any digit metacharacter and type an uppercase D and click-off, I would change that metacharacter's meaning.
I have now described any character that is not a digit, which doesn't just mean letters. It means spaces, punctuations, literally anything that isn't a digit. This same convention of switching from lowercase to uppercase applies to several other metacharacters. I'll clear this out, click off here, go back in this field and if I wanted to describe, for example, a Wildcard that is anything that's not a white space. If I choose Any White Space, I get \s. We would change that to an uppercase S and click off.
I described anything that is not a white space, which means any character except a standard Spacebar space, a Tab, any of InDesign's custom white space characters. None of those are highlighted, but anything that doesn't meet the criteria for being a white space is highlighted. The same thing goes for any upper and lower case letter. Any uppercase letter is \u, but changing it to \U highlights everything that is not an uppercase character.
Any Lowercase character, same thing. \l is any lowercase character, \L is anything but a lowercase character. And the last of these is \w, which is Any Word character, meaning any upper or lowercase letter, digit or underscore would highlight all of that. But \W would change that meaning to its opposite, so all of my punctuation, spaces, anything that doesn't fall into the criteria of being a word character, is highlighted instead.
When you're putting together a complex GREP expression, it's good to know these wildcard opposites exist, because sometimes it's easier to describe something based on what it's not, rather than what it is.
Get unlimited access to all courses for just $25/month.Become a member
117 Video lessons · 42895 Viewers
119 Video lessons · 54232 Viewers
65 Video lessons · 14492 Viewers
113 Video lessons · 82887 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.