In Eagle, you can use regular expressions to set filtering conditions for smart folders, enabling more precise automatic file categorization. This article will introduce how to configure smart folders using regular expressions.
Basic Operation Steps
- Create a smart folder: Click the "+" button on the right side of the smart folder area in the sidebar, or use the shortcut
Ctrl+Shift+Alt+N - Name the smart folder
- Select filtering condition: Choose "Name" and select "Regular Expression" as the matching method
- Enter the regular expression
- Click "Add Smart Folder" to complete creation
Practical Application Example
Suppose you want to collect all images with names like "Photo_001", "Photo_002", etc.:
- Create a smart folder following the steps above
- In the condition settings, select "Name" and "Regular Expression"
- Enter the expression
^Photo_\d+$ - After creation, the smart folder will automatically display all images that match the criteria
Important Notes
- Regular expressions are case-sensitive, please ensure the expression matches your naming convention
\d+represents one or more digits^and$represent the beginning and end of a string respectively, ensuring exact matching- You can adjust the regular expression as needed to accommodate different naming rules