Answers for "how to remove linefeeds from string python"

2

python remove new line

lines = ("line 1 rn")
lines.rstrip("nr")
Posted by: Guest on February-16-2021
0

how to remove blank lines from string in python

re.sub(r'^$n', '', s, flags=re.MULTILINE)
Posted by: Guest on June-15-2021

Code answers related to "how to remove linefeeds from string python"

Python Answers by Framework

Browse Popular Code Answers by Language