This one was obviously a regex puzzle. I've never used regexes in C++, so I looked it up. And then decided to write a custom parser anyway, since it felt faster than figuring out the c++ regex syntax.