Maccy
Maccy Search and Regex: Find Anything in Your Clipboard History
Quick answer: Open Maccy with Shift+Cmd+C (the default shortcut) and start typing. Search works immediately, with no search box to click. Maccy App supports four search modes (Exact, Fuzzy, Regex, and Mixed) set under Settings → General. Switch to Regex to match patterns like URLs, email addresses, or lines ending in .pdf.
The problem this solves
You copied a tracking link at 10 a.m. and an invoice number at 2 p.m., and by evening they’re buried under 150 other clips. Scrolling is slow. Remembering a few characters is fast. Maccy Mac‘s search is built for exactly this, and regex is what makes it work when you remember the shape of what you copied but not the content.
How do you search in Maccy?
- Press your Maccy shortcut (default Shift+Cmd+C) or click the menu bar icon.
- Type. The list filters as you go and matches are highlighted.
- Use the arrow keys to move through results and Return to paste or copy the selection.
Search applies to text-based history items. Don’t expect image clips to match by content.
Which search mode should you use?
You can change the mode in Maccy Clipboard → Settings → General → Search.
| Mode | How it matches | Best for | Trade-off |
|---|---|---|---|
| Exact | Your text appears as a substring of the clip | Everyday use, when you remember a word or two | A typo returns nothing |
| Fuzzy | Approximate matching that tolerates missing or misordered characters | Half-remembered words, quick sloppy typing | More false positives, and long histories get noisy |
| Regex | Your input is treated as a regular expression | Finding clips by pattern: URLs, IDs, file extensions | Special characters need escaping, and a half-typed pattern can match nothing |
| Mixed | Tries several strategies together | People who want one setting and few surprises | Less predictable than a single mode |
My practical advice: stay on Exact or Mixed for daily work, and switch to Regex deliberately when you have a pattern in mind. In Regex mode, an ordinary word still works, because a plain word is a valid regex that matches itself. The catch is characters such as ., (, +, and ?, which now have special meaning. Searching for file(1) will not match the literal text, because the parentheses form a group instead.
Regex cookbook: patterns that actually earn their keep
Switch to Regex mode and try these. Each is written for ICU regex syntax, which is what macOS uses.
| Goal | Pattern | Notes |
|---|---|---|
| Any web link | https?://\S+ |
s? makes the “s” optional, and \S+ runs to the next whitespace |
| Email addresses | [\w.+-]+@[\w-]+\.[\w.-]+ |
Pragmatic, not RFC-perfect, and fine for searching |
| Clips ending in .pdf | \.pdf$ |
The backslash makes the dot literal |
Clips starting with sudo |
^sudo |
Handy for terminal commands |
| Either of two words | invoice|receipt |
The pipe means OR |
| Hex color codes | #[0-9a-fA-F]{6}\b |
Six hex digits after a hash |
| IPv4-looking addresses | \b(?:\d{1,3}\.){3}\d{1,3}\b |
Matches the shape only; it won’t reject 999.999.999.999 |
| UUIDs | (?i)\b[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}\b |
(?i) forces case-insensitivity |
| Both words, any order | ^(?=.*token)(?=.*staging) |
Lookaheads check each word independently. Add (?s) at the start if the clip spans multiple lines |
| Any number with 5+ digits | \d{5,} |
Order numbers, tracking IDs |
Two behaviors worth knowing
- Multi-line clips: by default,
.does not match a newline, and^/$anchor to the whole clip rather than each line. Use(?s)to let.cross lines and(?m)to anchor per line. These are standard ICU inline flags. - Case sensitivity: Maccy’s search is generally case-insensitive, but I would not rely on that for regex without testing. Add
(?i)if casing matters to you.
Why does my regex return nothing?
Most failures fall into four buckets:
- You’re still in Exact mode.
https?://\S+in Exact mode searches for that literal string. Check the setting first. - Unescaped special characters. To match a literal
.,?,(, or+, prefix it with a backslash. - The pattern is temporarily invalid while you type. An unclosed
(or[isn’t a valid expression, so expect an empty list until you close it. - The clip isn’t text. Images and some file copies have no searchable string content.
Searching and privacy: what actually stays local
Maccy is local-first, so search runs against history stored on your Mac, with no server involved. If there are clips you never want to be searchable (or stored at all), use the ignore options in settings rather than relying on deleting them later. Password managers typically mark their clipboard writes as concealed or transient, which is a convention clipboard managers can respect. Confirm that your specific password manager does this before trusting it.
A simple workflow that sticks
- Leave the mode on Exact or Mixed for the 90% case.
- Pin the clips you reuse constantly (the default pin shortcut is Option+P) so they never need searching.
- Keep two or three regexes you actually use, such as links, emails, and IDs, in a note, and paste them into the search field when needed.
- Trim your history size in settings if fuzzy results get noisy. A smaller history gives cleaner matches.
Wrapping up
Exact search gets you most of the way, fuzzy rescues sloppy memory, and regex is the tool for “I know what it looks like.” Once you’ve used https?://\S+ to retrieve a link from last Tuesday, scrolling through history feels like a bad habit.
Maccy is free and open source, so you can try all four modes without commitment. Which pattern would save you the most time? Start with whatever you find yourself hunting for most often.