{"description":"\u524d\u56de\u3001std::regex \u3092\u4f7f\u3063\u305f split \u3092\u5b9f\u88c5\u3057\u307e\u3057\u305f\u304c\u3001\u4eca\u56de\u306f std::getline \u3092\u4f7f\u3063\u305f\u5b9f\u88c5\u3067\u3059\u3002 #include <iostream> #include <sstream> #include <vector> #include <string> int main(){ auto split = [](auto src, auto del){ std::istringstream stream{src}; std::string output; std::vector<std::string> result; while(std::getline(stream, out\u2026","image_url":null,"width":"100%","provider_name":"Hatena Blog","blog_title":"Secret Garden(Instrumental)","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2017%2F08%2F21%2F070930\" title=\"C++ \u3067 std::getline \u3092\u4f7f\u3063\u305f split - Secret Garden(Instrumental)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","title":"C++ \u3067 std::getline \u3092\u4f7f\u3063\u305f split","height":"190","provider_url":"https://hatena.blog","blog_url":"https://secret-garden.hatenablog.com/","author_name":"osyo-manga","categories":["C++"],"published":"2017-08-21 07:09:30","author_url":"https://blog.hatena.ne.jp/osyo-manga/","url":"https://secret-garden.hatenablog.com/entry/2017/08/21/070930","type":"rich"}