ZapPad uses PCRE2 for ordinary document search and supported transformations. Inspect matches and replacement output before applying changes; the separate huge-log viewer searches literal text rather than running regex.
ZapPad for Mac · Focused help guide
Use PCRE2 regex
See the complete ZapPad manual for all menus, settings and troubleshooting. These focused guides are drawn from the same current manual.
Applies to the current Direct release documentation for Apple Silicon Macs on macOS 12 or later.
How to use this feature
Find and Replace
Choose Search›Find and Replace… (⌘F) or the Find and Replace… button beside the bottom Find field.
| Control | What it does |
|---|---|
| Find | The text or pattern to find. The ? button shows examples. |
| Replace with | Replacement text. In regex mode, $1 inserts capture group 1 and ${name} a named group. Leave empty to delete matches. |
| Mode: literal | Matches the text exactly; * and ? are ordinary characters. |
| Mode: escaped | Literal, but \n, \r, \t and \\ are interpreted. |
| Mode: regex | PCRE2 regular expressions, e.g. ^WARN, [0-9]+, \bword\b. |
| Current pad / All open pads | Search scope. |
| Ignore case | Case-insensitive matching. |
| Find All ↩ | Selects the first match, highlights the matches in the current pad with the first mark color, and opens a Search Results window. |
| Preview Replace All | Shows every change (across pads if chosen) in the review window. Apply Changes commits all pads together; earlier revisions remain in Version History. |
| Cancel Esc | Closes the sheet. |
Search Results window: lists up to 2,000 matches with surrounding text (“N matches · showing M”). Select a result and choose Open Match (or press Return) to jump to it. Search›Navigate and Select›Next / Previous Search Result step through the list.
Search›Find Next (⌘G) selects the next match of your last search, wrapping to the top. With no previous search it opens Find and Replace.
Describe Macro… and Generate Regex…
Both open a form with an Instruction and optional Examples (representative input/output or matching/non-matching lines, up to 4,000 UTF-8 bytes). Examples are sent to the on-device model with the instruction - avoid sensitive samples. Generate Regex… accepts only regex operations (replace, extract, keep, delete or highlight); otherwise it asks you to describe the match explicitly.
Frequently asked questions
Does ZapPad support PCRE2 regex on Mac?
Yes. PCRE2 is available for search and supported transformations in ordinary documents. ZapPad validates supported replacement captures and shows a preview so you can inspect matches and output. The large-file viewer is separate and uses literal search, not regex across a multi-gigabyte file.
Can I use regex without Apple Intelligence?
Yes. You can write or paste your own pattern and use PCRE2 search, extraction and supported replacements without Apple Intelligence. The optional described-change and regex-generation flows may use Apple’s on-device model when available.
Does a valid pattern guarantee the replacement is correct?
No. Compilation checks syntax and supported replacement references, not whether a pattern expresses your intent. Inspect matched text, the proposed result and edge cases before applying. Keep an original or use ZapPad’s recovery options for important work.
For complete current feature details, open the ZapPad manual.