Recently, I used the regular expression to find a big circle on the Internet, because I use C + + and do not want to use ATL. Finally found C write pcre is very good and authoritative, PHP and Python use it.
The words are turning right down. For the following steps to compile Pcre under Windows:
1. First to Pcre's official website download, http://www.pcre.org/then click http://gnuwin32.sourceforge.net/packages/pcre.htm Download Sources zip.
2. After downloading a new Lib latter DLL project after pcre-7.0-src all the header files added to the project, and then add the PCRE_*.C, do not put. cc or other. c files added.
3. Please note that this is very important oh, when compiling the static library to add precompiled Pcre_static macros. Then the pcre-7.0 folder under the PCRE_CHARTABLES.C to PCRE-7.0-SRC and then add to the previous step of the project inside the link will not be a problem. This one is my personal experience.
Finally compile on the line, write this want everyone in WinDOS under the smooth use of regular expressions.