Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

re: parsing between string tokens  RSS feed

Craig Davies
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!