I am looking at using pcre2 in my simple c++ app, (I am using vs2015).
(I am looking at various regex libraries and the general feeling is that pcre/pcre2 are the most flexible)
First I downloaded pcre2 from the official location, (http://sourceforge.net/projects/pcre/files/pcre2/10.20/) and created a very simple example.
#define PCRE2_CODE_UNIT_WIDTH 8
PCRE2_SPTR subject = (PCRE2_SPTR)std::string("this is it").c_str();
PCRE2_SPTR pattern = (PCRE2_SPTR)std::string("([a-z]+)|\\s").c_str();
pcre2_code *re = pcre2_compile(pattern, PCRE2_ZERO_TERMINATED,
PCRE2_ANCHORED | PCRE2_UTF, &errorcode,
In case someone wants to build the library using visual studio
Compile and the lib file should be created fine.