I'm having lots of problems trying to get all the tokens between a recurring one. I have tokenised a string using stringTokeniser and placed the resulting output into a vector. However, I can easily find the occurence of specific tokens, but I want to pass whats between to another vector. This is a generalised representation of my string before tokenising: 1:A:B:C :E:F:1 How can I get A B C D E F and one occurence of 1 into a single vector and repeat until end of file? By the way, other entries like the above are newline delimited. Thanks in advance.