#include <iostream>
#include <regex>
int main() {
    std::string s = "{\"|1|\":\"A\",\"|2|\":\"B\",\"|37|\":\"4234235\",\"|4|\":\"C\"}";
    std::regex regex("37\\|\\\\\":\\\\\"\\K\\d*");
    std::smatch m;
    regex_search(s, m, regex);
    std::cout << "match: " << m.str(1) << std::endl;
    return 0;
}
Why does it not match the value 4234235?
Testing the regex here: https://regex101.com/r/A2cg2P/1 It does match.
