cheers00
- 5
- 0
I am wondering why this is not matching. I tested my regular expression on notepad2 and it matches fine.
std::string line = " 10 0 5 0";
std::regex rgx("\s+\d+\s+\d+\s+\d+\s+\d+");
if (regex_match(line, rgx))
{
// do something...
int a = 2;
}
std::string line = " 10 0 5 0";
std::regex rgx("\s+\d+\s+\d+\s+\d+\s+\d+");
if (regex_match(line, rgx))
{
// do something...
int a = 2;
}