1. The most convenient thing is the built-in catlregexp in ATL. However, POSIX standards are poorly supported and very slow.
2. Boost is very famous, but too bloated and fast.
3. In the past, Microsoft Research Institute had a group engaged in Greta, claiming that the speed was more than seven times that of boost, but it was never updated in the past 03 years. Compilation in vc8 or later versions requires slight modification. Good compatibility.
4. VBScript. Regexp. Both compatibility and speed are good, especially when the speed unexpectedly beats Greta. The complicated rules are more than doubled faster than Greta. It is also built in windows, and does not need to be linked to a lib of several hundred kb like other libraries.
5. TRE: This was found when Google re2 was searched. This alternative is found because re2 cannot be compiled on Windows.AlgorithmSimilar to Google's re2, but the test is still immature and there are omissions in matching. The measured speed is similar to that of Greta, Which is slower than VBScript. Regexp.
6. PCRE: This is the king. The javascriptcore of WebKit is used. The test speed is too shocking. First, I will discuss VBScript. the performance of Regexp is quite satisfactory. I didn't expect the speed of PCRE to be more than 10 times faster ...... The only drawback is that wchar_t is not supported, so the wchar_t string must be converted to Char first. But it is still fast enough.