{"width":"100%","author_name":"osyo-manga","url":"https://secret-garden.hatenablog.com/entry/2017/08/15/232229","provider_url":"https://hatena.blog","blog_title":"Secret Garden(Instrumental)","height":"190","blog_url":"https://secret-garden.hatenablog.com/","version":"1.0","title":"C++ \u3067 std::regex \u3092\u4f7f\u3063\u305f split","description":"C++ \u3067 split \u304c\u8a71\u984c\u306b\u306a\u3063\u3066\u3044\u305f\u306e\u3067\u3084\u3063\u3066\u307f\u305f\u3002 #include <regex> #include <iostream> #include <string> #include <vector> int main(){ auto split = [](std::string src, auto pat){ std::vector<std::string> result{}; std::regex reg{pat}; std::copy( std::sregex_token_iterator{src.begin(), src.end(), reg, -1}, std::sregex_t\u2026","provider_name":"Hatena Blog","categories":["C++"],"author_url":"https://blog.hatena.ne.jp/osyo-manga/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsecret-garden.hatenablog.com%2Fentry%2F2017%2F08%2F15%2F232229\" title=\"C++ \u3067 std::regex \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>","image_url":null,"published":"2017-08-15 23:22:29","type":"rich"}