Global Regular Expressions Print (GREP)
摘要
Another widely used and comprehensive feature in InDesign, particularly in the context of automation and scripting, is GREP. GREP extends the traditional text search by enabling the identification of desired text patterns using regular expressions and wildcards. What makes GREP unique is that search and replace operations can be applied not only to text but also to formatting. For example, it is possible to search for a text pattern in a specific font and replace it with both different text and a different font. GREP can also be controlled via scripts, making it suitable for use in both partial and full automation workflows.