Bulk classify a large number of files into corresponding folders by custom regular expressions
Translation:简体中文繁體中文EnglishFrançaisDeutschEspañol日本語한국어,Updated on:2025-04-08 15:22
Summary:When dealing with a large number of complex file names or multiple types of files, using regular expressions for custom classification is an efficient management method. It can quickly filter patterns such as dates and numbers in file names and classify files by time. During the cleanup of unnecessary files, regex matching can quickly locate unwanted files for easy cleanup, and in project management, regular expressions can efficiently retrieve target files based on keywords in file names. When file sources are diverse and naming is inconsistent, regex can also help unify classification and renaming. This classification method makes file management more flexible and efficient. Below is an introduction to using regular expressions to distinguish letters, numbers, or text in file names for batch classification, supporting various file formats such as Word, Excel, PDF, JPG, etc.
1、Usage Scenarios
Many file names contain dates, numbers, or classification identifiers. We need to quickly classify files by year or number. At this time, 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、Operation Steps
Open 【HeSoft Doc Batch Tool】, select 【File Organization】 - 【Classify Files by Filename】.
【Add Files】Add multiple files that need to be classified and organized using a custom regular expression based on the filename.
【Import Files from Folder】Import a folder containing a large number of files that need to be classified and organized using a custom regular expression based on the filename.
【Classification Method】Click to classify by custom regular expression.
【Regular Expression】Enter the regular expression formula for matching classification.
After processing is complete, click the path behind the save location to view the classified files.