I. BACKGROUND
Many places in the project need to match strings, such as filtering filenames based on a specified filter string. First of all, I'm not familiar with the boost library; second, if a third-party library is introduced, it will increase the dependency of the library, and the consequence is that packaging a dynamic library or compiling it directly with a static library will increase the size of the program.
In the beginning is to try to write their own fuzzy matching algorithm, very simple, only support _ and%, the two wildcard characters, and then found that Linux has a fnmatch function, is to do fuzzy matching, it supports the shell wildcard character.
But at the end of the discovery, when the need to distinguish very similar strings, fuzzy matching is not enough, so I intend to learn to learn Boost::regex regular expression library (in the middle also considered the Regex under Linux).
This is the reason for learning the Boost::regex library.
Ii. introduction of Boost::regex
I want to add ...
Boost Library Learning Regex