Use regular expressions
Choose a predefined pattern or write a regex, then inspect matches and capture groups.
Use regex to recognize information in filenames or supported text content. Start with a pattern from the library, or type an expression directly.


Enter a pattern#
- In Advanced search, edit a filename condition and choose Regex instead of FileMask. For content, add Content matches regex.
- Type or paste the expression into its field.
- Click Done, then Search.
Filename masks and regex expressions keep separate drafts when you switch modes. Existing saved expressions keep their exact pattern.
Choose a predefined pattern#
Click the button at the right edge of the expression field. Modern themes show a list icon; Classic themes show (*).
The Regex library opens in read-only mode. Select a group, select a pattern and click Use pattern. You can also press Return on a pattern row or double-click it. Import and Export are available while browsing. Manage enables editing in the same window.


The catalog includes 57 patterns in nine groups:
| Group | Examples |
|---|---|
| Phone numbers | 12 formats: international, China mobile/landline, US/Canada, UK mobile, extensions and more. |
| Dates | ISO, day-first, month-first, Chinese, compact and underscore formats. |
| Times | 10 formats, including AM/PM, fractional seconds, UTC offsets and filename-safe separators. |
| Money | 11 patterns, including separate USD, EUR, GBP, CNY, JPY, CHF and INR formats. |
| Numbers & percentages | Signed integers, decimals and percentages. |
| Email addresses | Mailbox and domain captures. |
| Business references | Invoice, contract, purchase order, employee, shipment, SKU and ticket references. |
| Technical identifiers | IPv4, URLs, UUIDs and versions. |
| Media filenames | Numbered photo filenames. |
Filename browsing omits content-only formats such as slash dates and colon times. Manage mode shows the complete library. A pattern recognizes a written format; it does not verify a phone allocation, calendar date, monetary denomination or business record.
Test matches and groups#
Choose Test current pattern… in the library. Type or paste sample text. For filenames, enter one filename per line.


Whole matches receive a background and bracket. Capture groups receive colored text and nested bracket underlines. Select a captured value to isolate it; right-click it to copy. The inspector identifies empty and absent optional groups too.
Load example replaces the sample with the chosen pattern's examples. Your edited sample is kept when you change patterns. Return adds a line, Tab leaves the sample editor, Shift-Tab moves backward and Option-Tab inserts a tab.
The preview checks up to 16,384 characters, 100 matches and 64 groups. A slow expression stops with an explanation. Simplify it and test again.