This utility generates Regular Expressions (Regex) specifically optimized for Affinity Publisher 2, Affinity Designer 2, and Affinity Photo. While Adobe InDesign users often refer to this functionality as GREP, Affinity uses standard Regex syntax in its Find and Replace panel.
1. Initial Setup
Open Find & Replace
Window > Find and Replace Cmd+F
Enable Regex
2. Generate Codes
The Problem: In typography, leaving short prepositions (like „in“, „on“, „at“) or single-letter conjunctions at the end of a line is considered poor form. These hanging words disrupt the visual flow of the paragraph.
The Solution: This tool creates a precise search pattern to identify these words when they are followed by a normal space. The replacement pattern keeps the word but replaces the standard space with a Non-Breaking Space (NBSP). This „glues“ the preposition to the following word, ensuring they always wrap to the next line together, creating a cleaner and more professional layout.