How can I get this regex to match the input string?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <iostream>
#include <regex>
int main(int argc, char **argv){
std::regex exportRegex ("(\\d+)\\D+\\d+\\D+\\S+\\s+(.+)");
std::cmatch exportMatcher;
std::regex_match(" 1 0 000E1AD0 ??0AESCrypto@@QAE@ABV0@@Z",
exportMatcher, exportRegex );
for( int i = 0; i < exportMatcher.size(); i++ )
std::cout << "Match[" << i << "]: " << exportMatcher[i] << std::endl;
system("pause");
return 0;
}
I have tried this, as well as the regex:
"(\d+)\D+\d+\D+\S+\s+(.+)" (Note single backslash instead of 2)
But I think I am supposed to use double backslash for this.