When faced with a large number of complex file names or multiple file types, using regular expressions for custom classification is an efficient management method that can quickly filter patterns such as dates and numbers in file names, categorizing files by time. When cleaning up unnecessary files, regular matching can quickly locate useless files for easy cleanup. In project management, regular expressions can also efficiently search for target files based on keywords in file names. When file sources are diverse and naming is inconsistent, regular expressions can help with unified classification and renaming, making file management more flexible and efficient. The following describes how to use regular expressions to distinguish letters, numbers, or text in file names for batch classification of files, supporting various file formats such as Word, Excel, PDF, and JPG.
1. Use Cases
Many file names contain dates, numbers, or classification identifiers. We need to quickly categorize files by year or number. In such cases, we can use regular expressions to extract these specific patterns for batch classification, effectively improving file management efficiency.
2. Preview
Before processing:

After processing:


3. Steps
Open [ HeSoft Doc Batch Tool ] and select [File Organization] - [Classify files by file name].

[Add Files] Add multiple files that need to be classified by custom regular expressions in file names.
[Import Files from Folder] Import a folder containing a large number of files that need to be classified by custom regular expressions in file names.
You can view the imported files below.

[Classification Method] Click to classify by custom regular expression.
[Regular Expression] Enter the regular expression formula to match for classification.

After processing is complete, click the path after the save location to view the classified files.
