Possible Duplicate:
Lightweight and portable regex library for C/C++?
I'm looking for a C++ (C is acceptable, too) library for matching regular expressions. The library should satisfy these requirements:
- Can be built on Windows (MSVC 7 and newer)
- Can be built on Linux (g++ 3.4 and newer).
- Has no external dependencies; nothing but C/C++ runtime and STL allowed
- Works reasonably fast for small (~200 characters) strings to match against
I don't need a particular regexp flavor (POSIX, PCRE etc.) so anything is fine.
So far, I considered these libraries:
- re2: Interesting, but apparently no support for Windows builds
- PCRE doesn't seem terribly 'small' (over 1MB zipped sources) and doesn't seem to support Windows in its buildsystem.
- Boost Regex might fit the bill but I didn't spend much time on trying to figure out if I can build it standalone
Anything else maybe?