Maccy Regex Search Examples: 15 Patterns That Actually Work

Quick answer: To use regex in Maccy, open Settings → General, set Search mode to Regex (or Mixed), then open the history window and type a pattern such as https?://\S+ to show only copied links. Maccy App searches your clipboard history with a regular expression instead of plain text matching.

How do I turn on regex search in Maccy?

  1. Click the Maccy menu bar icon and open Settings (or press ⌘, with the window open).
  2. On the General tab, find Search and choose Regex. Maccy also offers Exact, Fuzzy and Mixed modes.
  3. Open Maccy with your hotkey (default ⇧⌘C) and start typing. Results filter as you type.

There is no separate “regex field”. The same search box now interprets what you type as a pattern.

Which regex symbols do I actually need?

Maccy Mac‘s regex mode relies on macOS’s built-in regular expression engine (ICU syntax, the same family used by NSRegularExpression). If you know basic regex, you know enough.

Symbol Meaning Example
\d One digit \d{4} matches 2026
\S+ One or more non-space characters \S+@\S+
[a-z] Character range [a-f0-9]{6}
( | ) Either/or (error|fatal)
^ / $ Start / end of text ^https

What are the best Maccy regex search examples?

Finding links, contacts and identifiers

Goal Pattern Notes
Any web link https?://\S+ Matches http and https.
Links to one domain github\.com/\S+ Escape the dot with \., otherwise it matches any character.
Email addresses [\w.+-]+@[\w-]+\.[\w.-]+ Practical, not RFC-perfect.
IPv4 addresses \b(\d{1,3}\.){3}\d{1,3}\b Also matches 999.999.999.999. Fine for finding, not validating.
UUIDs [0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12} Handy when hunting a request or order ID.
Phone-like numbers \+?\d[\d\s().-]{8,}\d Loose by design; formats vary wildly by country.

Finding developer snippets

Goal Pattern
Hex color codes #[0-9a-fA-F]{6}\b
ISO dates (2026-10-18) \d{4}-\d{2}-\d{2}
Git commit hashes \b[0-9a-f]{7,40}\b
Log severity lines (error|warn|fatal)
File paths in your home folder ~/\S+|/Users/\S+
Shell commands starting with sudo or brew ^(sudo|brew)\s

Filtering by shape instead of content

Goal Pattern Why it’s useful
Items that are only digits ^\d+$ Surfaces codes, IDs and amounts.
Everything except links ^(?!https?://) Negative lookahead; ICU supports it.
Ends with a file extension \.(pdf|docx|xlsx)$ Finds copied file names.

What are the gotchas?

Case sensitivity

Maccy Clipboard‘s regex search appears to ignore case by default. If your build does not, prefix the pattern with (?i) to force case-insensitive matching.

Multi-line clips and anchors

Copied text often spans lines. In ICU, ^ and $ normally mean start and end of the whole string, not each line. Add (?m) to anchor per line, and (?s) if you want . to cross line breaks.

Broken patterns

While you type, the pattern is often temporarily invalid, for example an unclosed (. Expect an empty or unchanged list until the pattern is complete. It is not a bug in your clipboard history.

What gets searched

Maccy searches the text it stores for each item. Very long clips may be truncated for display or search. If a match deep inside a huge paste is missing, that is a likely reason.

Images and files

Regex applies to text. An image has no text to match, so it will not show up for text patterns.

Should I use Regex, Exact, Fuzzy or Mixed?

Mode Best for Trade-off
Exact Remembering a word you copied No tolerance for typos.
Fuzzy Half-remembered text Can return loosely related items.
Regex Finding by pattern or shape Special characters like ., (, ? need escaping when you mean them literally.
Mixed Daily use with occasional patterns Less predictable than a single mode.

If you search for literal text containing punctuation, such as a price like $9.99 or a path with parentheses, regex mode will misread it. Escape the characters (\$9\.99) or switch modes.

Where regex search earns its keep

Regex search matters most when you cannot remember what you copied but you remember what it looked like: a long ID, a link, a color, a number. Pick three patterns from the tables above, such as links, UUIDs and “not a link”, and keep them in a note. That covers most real searches.

Maccy is free and open source, and your clipboard history stays on your Mac. What is the one pattern you wish you could search for?

FAQ

Does Maccy support regex search?

Yes. Maccy has a Regex search mode, selectable in Settings, that treats your search text as a regular expression.

How do I search for only links in Maccy?

Switch to Regex mode and type https?://\S+.

Is Maccy regex search case-sensitive?

It appears to be case-insensitive by default. Use (?i) to be certain.

Why does my regex return nothing in Maccy?

Common causes: an invalid or unfinished pattern, unescaped special characters, anchors on multi-line text, or the item being an image rather than text.

Which regex flavor does Maccy use?

macOS’s native engine, which uses ICU syntax, so lookaheads and inline flags like (?i) work.