string_1 = "\tVH VH VH VL N N N N N N N\n"
Here I'm trying to split the string which has a \t and \n within, when I try to split the string using the split function as below:
sep_setring = string_1.split()
Output:
['VH', 'VH', 'VH', 'VL', 'N', 'N', 'N', 'N', 'N', 'N', 'N']
But, I need an output to be like:
['\t', 'VH', 'VH', 'VH', 'VL', 'N', 'N', 'N', 'N', 'N', 'N', 'N', '\n']