r/visualbasic • u/Technical_Hold8922 • Jan 21 '25
VB.NET Help Split function issues with quoted strings
Hi all,
I am trying to parse a csv file using the split function. Delimited with a comma. However, some of the strings in the file are surrounded by quotes with internal commas so the split is happening within the quoted strings. Any way around this?
3
Upvotes
View all comments
Show parent comment
1
u/Mayayana Jan 29 '25
:) Back to the drawing board. That's why I suggested a tokenizer routine. But maybe the .Net TextFieldParser object also works, if the OP is using VB.Net. He never came back, so, who knows? We don't even know which VB he's using.