Posts by Reinaldo Lepsch Neto • 11 points
1 post
-
1
votes2
answers10008
viewsQ: how to remove n from a python string
I’m trying to delete control sequences (\n, \t, \u) of strings in Python and I can’t even with replace, nor with re.sub(). How could I do? I tried, and they didn’t work : p = re.sub('\n', '', p)…