I have a std::string, with a text as such
name0 0x3f700000 0x160000 1 0
or
name1 0x3f700000 0x760000 0 23
etc..
What I would like to know is if the last number in this line is greater than 0 and the number before is 1.
I did this but it doesn't work, always it returns a match.
std::regex_search(buffer, match, std::regex(std::string("(^|\n)") +
m_name + " [0-9a-fA-Fx]* [0-9a-fA-Fx]* 1 [1-9a-fA-Fx]*"));
Can you say where the error is? It seems to know when the number before is 1 but that last number seems to be going wrong.