How do I extract field = value
pairs from documents with the new C++ 11 regex library?
Example of document (treat it as std::string):
Caption = "calc.exe"; CommandLine = "\"C:\Windows\system32\calc.exe\" "; CreationClassName = "Win32_Process"; CreationDate = "20130606162432.173628+240"; CSCreationClassName = "Win32_ComputerSystem" Handle = "13484"; HandleCount = 93;
As output I need to get map:
{"Caption", "calc.exe"}
{"CommandLine", "\"C:\\Windows\\system32\\calc.exe\" "}
{"CreationClassName", "Win32_Process"}
{"CreationDate", "20130606162432.173628+240"}
{"CSCreationClassName", "Win32_ComputerSystem"}
{"Handle", "13484"}
{"HandleCount", "93"}
Code of what I want maybe like that: