Automation in typesetting? Yes, please!
GREP styles or regular expressions enable you to search for a certain condition and automatically apply formatting. The formatting can encompass a single character, word or a pattern of characters.
This is my personal cheatsheet for GREPs that I commonly use at work or which I found helpful otherwise.
.
any character
\d
any digit
\w
any word character
\l
any lowercase letter
\u
any uppercase letter
+
a character repeated one or more times
^
beginning of paragraph
Scripting is one of the powerful capabilities of InDesign. Once a script is set up, it saves time, leading to an increase in productivity, and can add functionality to a document. Any action that can change a document or its contents can be automated and scripted.