A large number of files according to custom regular expression batch classification into the corresponding file name folder
Translation:EnglishFrançaisDeutschEspañol日本語한국어,Updated on:2025-06-07 20:23
When faced with a large number of complex file naming or multi-type files, using regular expressions for custom classification is an efficient management method, which can quickly filter the date, number and other patterns in the file name and classify the files by time. When cleaning up unnecessary files, regular matching can quickly locate useless files to facilitate cleaning. In project management, regular expressions can also efficiently retrieve target files according to keywords in file names. Regular expressions can also help unify classification and renaming when the source of files is diverse and the naming is not uniform. Through this classification method, file management becomes more flexible and efficient. The following describes how to use regular expressions to distinguish letters, numbers, or characters in file names to classify files in batches. Multiple file formats such as Word, Excel, PDF, and JPG are supported.
1. Use Scenarios
many file names contain dates, numbers, or classification identifiers. We need to quickly classify files by year and number. At this time, we can use regular expressions to extract these specific patterns for batch classification, effectively improving file management efficiency.
2. Effect preview
before treatment:
after treatment:
3. Operation steps
open 【HeSoft Doc Batch Tool], select [File Arrangement]-[Classify files by file name]].

[Add File] Add multiple files that need to be sorted by custom regular expressions according to file names.
[Import File from Folder] Import a folder containing a large number of files that need to be sorted by custom regular expressions according to file names.
The imported files can be viewed below.

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

After waiting for the processing to complete, click the path behind the save location to view the classified files.
