Customize the regex library
Edit default and custom pattern groups, restore defaults and share patterns as JSON.
Keep patterns you use often in the regex library. Default and custom groups use the same editor, and your changes persist between launches.


Enable editing#
- Open the library from a filename or content regex field.
- Click Manage.
- Select a group to rename it, add expressions or edit an existing expression.
- Click Done editing to return to read-only browsing.
Browsing does not change the library. In Manage mode, all scopes are visible; the picker filters them again when you return to browsing.
Create or change a pattern#
Click New group… to create a group. Select it and click New expression…, or click an existing expression to edit it.


Enter a Name, Regex and Example match. Under Use in, choose Filenames and content, Content only or Filenames only. New expressions start with the current search expression and search context.
Filename examples cannot contain incompatible characters such as slash or colon. Choose Content only for such formats. An invalid expression is explained before it can be saved.
Click Save expression or press Return in a field. Cancel discards the edit. Right-click a group or expression and choose its Remove command to remove it after confirmation.
Customize defaults#
Rename default groups or edit, add and remove their expressions. Customized groups are marked Customized default. These changes are personal overrides of the bundled catalog.
Choose Restore defaults > Selected group… to reset one default group, or All default groups… to restore all defaults, including removed groups. Confirm the reset. Added expressions inside the affected default groups are removed by restoration; custom groups are kept.
Saved searches keep their exact regex and display name when library entries are edited, removed or restored.
Import and export#
Use Export > All groups… or Selected group… to save a JSON library. Import… reads a library from a JSON file. These commands are also available in read-only mode.
Import validates the complete file before changing the library. It merges custom groups by name, skips duplicate expressions and keeps conflicts as separately named copies. Imported default customizations replace untouched default groups; local customizations are preserved. Repeated imports do not add the same copies again. Older custom-only libraries remain supported.