0

I am trying to find a token(delimiter) in a string and then value in between of it.

const std::string s("str1;str2;str3");

here i want to find value str1 str2 and str3. trying to use std::regex but what will be regex value? tried

std::regex words_regex("(\\*;)");

but not working

Deduplicator
  • 43,322
  • 6
  • 62
  • 109
CrazyC
  • 1,790
  • 6
  • 35
  • 58

0 Answers0