Is it possible to delete from the beginning of a string up to (and including) a tab?
I know you can delete a specified amount of characters, but what if I have multiple strings which vary in length before the tab?
Thanks
1 2 3
|
std::string s = "Chapter 1\tstd::string";
std::string::size_type pos = s.find("\t");
s.erase(0,++pos);
|
Last edited on
Yeah I caught that and edited it but after the fact =]