Clipboard Manager with Regex Search for Mac: How to Find Anything You Copied
It’s 4 p.m. You copied an order ID forty minutes ago, somewhere between a Slack thread, two terminal windows and a spreadsheet. The clipboard history has 200 entries. You remember one thing: it started with ORD- and had six digits. Typing „ORD” into a normal search box finds six old orders. A regex finds the right one in a single keystroke.
Quick answer
Maccy is a free, open-source clipboard manager for macOS with a built-in regex search mode. Switch the search mode to Regex in Maccy app’s settings, open the history with ⇧⌘C, and type a pattern such as ORD-\d{6}. Only history items matching the pattern stay visible. Everything runs locally, with no account and no cloud sync.
Why does regex search matter in a clipboard manager?
Regex search matters because clipboard history is mostly structured junk: IDs, URLs, hashes, commands, addresses, tokens. You rarely remember the exact words, but you usually remember the shape. Plain substring search matches words. Fuzzy search matches vaguely similar letters. Regex matches shapes.
Fuzzy search is excellent when you remember a fragment of prose. It is noticeably worse when you’re hunting a UUID, because scattered letters match half your history. Regex gives you precision and a way to say „not this.”
How do I turn on regex search in Maccy?
Maccy mac ships with several search modes. Fuzzy is the default, and Regex is one setting away.
- Click the Maccy icon in the menu bar (or open the history with ⇧⌘C, the default shortcut) and open Settings.
- Find the Search mode option. It sits in the General settings in current versions.
- Choose Regex. The other options are Exact, Fuzzy and Mixed.
- Open the history and type a pattern. The list filters as you type.
If you want to keep fuzzy search for everyday use, the Mixed mode combines approaches. Many people stay on Regex permanently, since a plain word is also a valid pattern.
Maccy clipboard is MIT-licensed and the source is on GitHub, so you can check exactly how search is implemented rather than trusting a marketing page. It is free to download from GitHub (and via Homebrew), and the Mac App Store build is a paid version that supports the project.
What regex patterns are actually useful for clipboard history?
These are patterns worth keeping in a notes file. Maccy uses the macOS regular expression engine, which follows ICU syntax, so \d, \w, \b, lookaheads and inline flags all work.
| You want to find | Pattern | Notes |
|---|---|---|
| Any URL | https?://\S+ | Matches http and https links |
| A specific domain | github\.com/\S+ | Escape the dot, or it matches any character |
| Order or ticket IDs | ORD-\d{6} | Swap in your own prefix and digit count |
| Email addresses | [\w.+-]+@[\w-]+\.[\w.]+ | Practical, not RFC-perfect |
| UUIDs | (?i)[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} | (?i) makes it case-insensitive |
| IPv4 addresses | \b\d{1,3}(\.\d{1,3}){3}\b | Doesn’t validate octets are 0–255 |
| Hex colors | #[0-9a-fA-F]{6}\b | Handy for designers |
| Shell commands | ^(git|docker|kubectl) | ^ anchors to the start of the item |
| Files by extension | \.(pdf|docx)$ | $ anchors to the end |
| Either of two words | invoice|receipt | Pipe means „or” |
| Anything except links | ^(?!https?://) | Negative lookahead |
| Phone-like numbers | \+?\d[\d\s().-]{8,}\d | Loose by design |
A realistic walkthrough
Say you were debugging an API and copied a dozen things: a request ID, two JSON blobs, a few curl commands, and a stack trace. You need the request ID again. You remember it was a UUID. Type the UUID pattern above, and the JSON blobs and curl commands drop away unless they embed a UUID, in which case they remain. In that case, tighten the pattern with anchors (^…$) to match only items that are a UUID and nothing else.
That anchoring trick is the single most useful habit. Unanchored patterns find items that contain the shape. Anchored patterns find items that are the shape.
What are the common regex search pitfalls?
- Half-typed patterns can match nothing. While you type
(before the closing), the pattern is invalid. An empty or unchanged list while typing is normal, so finish the pattern before judging the result. - Unescaped dots.
github.comalso matches „githubXcom.” Use\.. - Multi-line items. Copied code and logs span many lines. By default,
^and$refer to the start and end of the whole item. Add(?m)at the front if you want them to match line boundaries. - Case sensitivity. Don’t assume. Test with a known item, and use
(?i)to force case-insensitive matching. - Only what’s in history is searchable. If an app flagged its content as concealed (password managers typically do), Maccy won’t have stored it to begin with, and no pattern will find it. That’s a privacy feature rather than a bug.
- History limit. Search only covers retained items. Raise the history size in Settings if you need a longer memory.
Which Mac clipboard managers support regex search?
Few do. Most polished clipboard managers on macOS offer plain-text or fuzzy filtering, and regex is the rarer feature. This table is deliberately conservative. Several cells need confirmation against each tool’s current version, because feature sets change quickly.
| Tool | Regex search | Price model | Open source | Notable strength |
|---|---|---|---|---|
| Maccy | Yes (selectable search mode) | Free (GitHub); paid App Store build | Yes (MIT) | Keyboard-first, lightweight, local-only |
| Alfred (Powerpack) clipboard history | Paid | No | Part of a broader launcher workflow | |
| Raycast clipboard history | Free tier; paid plans | No | Integrated into a launcher with extensions | |
| Paste | Subscription | No | Visual timeline, iCloud sync | |
| Pastebot | Paid | No | Text transformation filters | |
| Clipy | Free | Yes | Snippets and simple history |
Where the other tools win is worth saying plainly. Paste is better if you want a rich visual timeline and cross-device sync. Raycast and Alfred are better if the clipboard is one feature inside a larger launcher you already use. Maccy wins when you want a small, fast, auditable tool where search is precise and nothing leaves your Mac.
Can I use regex to stop things from entering clipboard history?
Yes, in a related way. Maccy’s Ignore settings let you exclude specific apps and content types, and it also supports ignoring copied text that matches a pattern. Two sensible examples:
^sk-[A-Za-z0-9_-]{20,}$to keep API-key-shaped strings from being stored.^\d{13,19}$to skip long digit-only strings that could be card numbers. Expect some false positives, and treat this as a safety net rather than a guarantee.
This is a good example of why local-first matters. The history lives on your Mac, so the filtering rules you write are the whole story, and no server-side retention policy is involved.
Is regex search worth learning for this?
Yes, and the entry cost is small. You need about five constructs to cover most clipboard work: \d, . with an escape, |, ^/$, and {n}. Start with the cookbook table, keep a note of your own patterns, and switch back to Fuzzy or Mixed for days when you only remember a stray word.
If you want to try it, download Maccy, set Search mode to Regex, and run the URL pattern against your last hour of copying. What’s the first shape you’d search for?
FAQ
Does Maccy support regex search?
Yes. Maccy includes a selectable search mode, and Regex is one of the options alongside Exact, Fuzzy and Mixed. Switch it in the app’s settings, then type a pattern into the history search field.
What is the best free clipboard manager with regex for Mac?
Maccy is the strongest free option that offers regex search natively. It is open source under the MIT license, runs locally, and is operated almost entirely from the keyboard.
Which regex flavor does Maccy use?
It relies on the regular expression support built into macOS, which follows ICU syntax. That means familiar tokens such as \d, \b, lookaheads and inline flags like (?i) should work.
Can I search copied images or files with regex?
Regex search applies to text. Items that are only images have no text content to match.
Is regex search in a clipboard manager safe for sensitive data?
Searching itself is local and sends nothing anywhere. The risk is what gets stored. Use app-level ignore rules and pattern-based ignore rules so secrets never enter history in the first place.
If you want to try it yourself, maccy.at is a free, open-source clipboard manager for macOS — the clipboard history guide covers the rest.