Given that this code works:
regex r1{ "fish"s };
smatch m1;
if (regex_search("I love fish and chips"s, m1, r1))
cout << m1[0] << endl;
I believe that VS2015 supports regular expressions. However, initialization of this regular expression object:
regex r{ R"(\d{2,3}(-\d\d) { 2 })" };
throws a std::regex_error exception. What's wrong with the initialization?
{ 2 }(plus the space left from{) with{2}or-with\-.<regex>