Boost Library Learning Regex

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.