POSIX-compatible regular expression library for Visual Studio C

I am working on a C program that will run on Linux and from within Visual Studio 2010, and I am looking for a regular expression library. GNU ships with the POSIX-compatible regex library, but Visual Studio, despite having C ++ std :: regex, does not have a C-compatible library. GNU has a version of its Windows library (http://gnuwin32.sourceforge.net/packages/regex.htm), but the DLLs are only 32-bit and the source code cannot compile in Visual Studio (~ 500 errors!). My only requirement is that the end user should not install anything superfluous and should receive the same behavior on both platforms. I'm not picky about whether it's POSIX style, Perl style, or anything else. What should I do? Thanks in advance.

+5
source share
1 answer

One library that I found that compiles mostly effortlessly and is also the smallest: https://code.google.com/p/slre/ . It is quite simple but good enough for my purposes. Thanks for the help, however.

+5
source

All Articles