POSIX-compatible regex library for Visual Studio C

Posted by user1397061 on Stack Overflow See other posts from Stack Overflow or by user1397061
Published on 2012-07-02T15:11:59Z Indexed on 2012/07/02 15:15 UTC
Read the original article Hit count: 392

I'm working on a C program which will be run in Linux and from inside Visual Studio 2010, and I'm looking for a regex library. GNU comes with a POSIX-compatible regex library, but Visual Studio, despite having C++ std::regex, doesn't have a C-compatible library. GNU has a Windows version of their library (http://gnuwin32.sourceforge.net/packages/regex.htm), but the DLLs are 32-bit only and the source code can't compile in Visual Studio (~500 errors!). My only requirement is that the end-user should not have to install anything extra, and should get the same behaviour on both platforms. I'm not picky about whether it's POSIX-style, Perl-style or something else. What should I do? Thanks in advance.

© Stack Overflow or respective owner

Related posts about c

    Related posts about regex