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
  • 44,692
  • 7
  • 66
  • 118
CrazyC
  • 1,840
  • 6
  • 39
  • 60

0 Answers0