The “lookbehind” assertions (?<=
and (?!<
are not allowed in STL: https://learn.microsoft.com/en-us/cpp/standard-library/regular-expressions-cpp.
For simple cases, try an alternative:
string s = "... <abc>some text</abc> ...";
regex r( "(?:<abc>)((.|\\n|\\r\\n)*?)(?:</abc>)" );
smatch m;
if( regex_search( s, m, r ))
{
string result = m[1];
// . . .
}