I have a string like this:
std::string string1 = \"xjdfhfakdjs%54k34k.-jk34\";
I need to get only \"\"xjdfhfakdjs\", but the string is dyna
I believe that will work.
std::string mystr = string1.substr(0, string1.find("%", 0));