Automatic File Name Identification and Cleaning via Regular Expression Matching
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Manual identification of file names in electronic devices is inefficient, especially when dealing with large numbers of files, as it requires manual matching of regular expressions against a preset template library, leading to low efficiency in file cleanup and retrieval processes.
Innovation Solution
A method and device for automatic file name identification and cleaning, which involves determining a set of files to be processed, obtaining file names, detecting regular expression templates in a preset library, and identifying regular expressions to match and clean files, thereby improving efficiency through automated processing.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If manual identification method is used to match regular expressions against file names, then the process can be completed with simple tools, but the processing efficiency is low and time-consuming
Solution Approach 1:
The system performs automatic file name identification without requiring manual intervention. The regular expression matching is executed automatically by the computer system, which analyzes file names and identifies patterns autonomously, eliminating the need for manual matching operations.
Solution Approach 2:
The manual mechanical process of comparing and matching file names against regular expression templates is replaced by an automated computer-based system. The system uses algorithmic processing to perform the matching operations that would otherwise require manual human effort, significantly improving efficiency.
2Quantity of substance
If the number of files in the electronic device increases, then more files need to be processed, but the manual identification process becomes increasingly time-consuming and inefficient
Solution Approach 1:
The system performs preliminary automatic identification of file names using regular expressions before any manual processing would be required. By pre-processing and identifying patterns automatically, the system prepares the data in advance, making subsequent operations more efficient regardless of the total number of files.
Solution Approach 2:
The system changes the operational parameter from manual processing to automated processing. This fundamental parameter change allows the system to handle increasing quantities of files efficiently, as the automated process scales better than manual methods when file volumes grow.
Data Source
AI summary
Embodiments of the present application disclose a method and a device for file name identification and file cleaning. The method for file name identification comprises: determining a set of files to be processed; obtaining a string corresponding to the name of each file included in the set of files to be processed; for the obtained string corresponding to the name of each file, detecting whether a regular expression template matching the string is present in a preset regular expression template library; determining the detected regular expression template as a regular expression template of the file name corresponding to the string; identifying a regular expression of the file name corresponding to the string according to the determined regular expression template. Embodiments of the present application are applied to enable automatic identification of file names and the cleaning of files in electronic devices, improving the efficiency of identifying file names in electronic devices and the efficiency of file cleaning.


