I want to extract track 2 data from a string, using std::regex
in C++.
I have a piece of code, but it does not work. This is the code:
std::string buff("this is ateststring;5581123456781323=160710212423468?hjks");
std::regex e (";\d{0,19}=\d{7}\w*\?", std::regex_constants::basic);
if(std::regex_match(buff, e))
{
cout << "Found!";
}