You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Trouble figuring out how to parse file with particular format of strings
#264
So I have a CSV file that has entries formatted like this:
entry1,"some text here ""string"" some more text"
entry2,"some other text here ""some other string"" some more text"
The problem I'm having is how do I grab the text after the comma (not including the first and last quote, ie should be just some text here ""string"" some more text) and then store it into a struct that has a std::string as a member?
I've played around with delimited, terminator, and other ways but with no luck.
Also the double quotes may appear multiple times inside the outer quotes and all the text after the comma for each entry can contain any ascii characters.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
So I have a CSV file that has entries formatted like this:
The problem I'm having is how do I grab the text after the comma (not including the first and last quote, ie should be just
some text here ""string"" some more text) and then store it into a struct that has a std::string as a member?I've played around with delimited, terminator, and other ways but with no luck.
Also the double quotes may appear multiple times inside the outer quotes and all the text after the comma for each entry can contain any ascii characters.
Any help would be greatly appreciated :)
Thanks in advance, Cq
All reactions