I have the data below
string = ' streptococcus 7120 "File being analysed" rd873 '
I tried breaking a string using n=string.split(), which gives the following result:
[streptococcus,7120,File,being,analysed,rd873]
I would like to break a line that ignores spaces in "
# output expected :
[streptococcus,7120,File being analysed,rd873]
source
share