Hello All.
This is my first post, I'm new to C#.
I would like to spilt the below string. My delimiter => ";" and each part is in double quotes.
My expected output:
I tried to go with:
Obviously is not working as intended, and I think I need a Regular Expression to handle it properly. As I mentioned at the beginning, I'm new to C#, so I might be wrong.
Thank you very much in advance
This is my first post, I'm new to C#.
I would like to spilt the below string. My delimiter => ";" and each part is in double quotes.
C#:
string myLine = "John Smith"; "A"; "45", "Nearly done; follow up";
C#:
John Smith
A
45
Nearly done; follow up
C#:
String[] myResponse= Regex.Split(myLine , ";");
Thank you very much in advance
Last edited by a moderator: