I have a string like this:
std::string string1 = "xjdfhfakdjs%54k34k.-jk34";
I need to get only “”xjdfhfakdjs”, but the string is dynamic, not hardcoded so I don’t know what is it, the length etc. so I wanted to remove everything after %, and also the % char.
How could I do this?
I believe that will work.