I am looking forward to best implementation of string tokenizer. I have seen a lot of implementation, but some of them doesn't work with multiple delimiters in a row. I can do it by myself but I don't know some already existed functions , so maybe it has been already implemented in a correct and fast way.
I need to split for example such string
"This__should_______be____split_into____seven___strings"
in this case delimiter is underscore. What is the most correct and elegant way to do this ?
EDIT
Sorry , I have not mentioned . I need to do this with only default libraries without different external like boost and others.