I have a big string which has got data from a csv file, however when using regular expressions such as:
Regex regex = new Regex(@"\w+|""[\w\s]*""");
it splits every letter instead? there are no spaces foreach line, only at the end of the line - but shouldn't be cutting the line where there is a space inside double quotes.
example: test1,test2,test3,test4,test5,"test 6",test7 (new line)test8,test9,etc.
Can somebody guide me in the right direction? thanks