fork download
  1. #include <iostream>
  2.  
  3. int main() {
  4. std::string test = "0:{src:'https://r...content-available-to-author-only...p.pl/token/video/vod/26773433/20180209/623845573/75e3c47b-fbed-47ae-88f6-aaab5762599e/video.ism/video.m3u8', type: 'application/x-mpegurl'},";
  5. std::size_t start = test.find("0:{src:'")+sizeof("0:{src:'")-1;
  6. std::size_t end = test.find(",", start) - 1;
  7. std::string link = test.substr(start, end - start);
  8. std::cout << link << '\n';
  9. return 0;
  10. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
https://r...content-available-to-author-only...p.pl/token/video/vod/26773433/20180209/623845573/75e3c47b-fbed-47ae-88f6-aaab5762599e/video.ism/video.m3u8