I have a string of characters like this in R
ABCDE,"January 10, 2010",F,,,,GH,"March 9, 2009",,,
I would like to do something like str.split() to partition by all combinations of commas and quotation marks into an array of strings, but keep the commas in quotation marks that represent dates so that I get:
ABCDE
January 10, 2010
F
GH
March 9, 2009
Thanks
If the pattern is as showed, then a regex option would be to create delimiter and make use of
read.table-output
Or with
scan-output
data