Good day,
I am totally new to Python and I am trying to do something with string.
I would like to remove any \n
characters found between double quotes ( "
) only, from a given string :
str = "foo,bar,\n\"hihi\",\"hi\nhi\""
The desired output must be:
foo,bar
"hihi", "hihi"
Edit:
The desired output must be similar to that string:
after = "foo,bar,\n\"hihi\",\"hihi\""
Any tips?