Answers for "replace \n with nothing pythin"

0

python replace n with something else

>>> import re
>>> re.sub('r?n', ' $ ', 'arnbrnc')
'a $ b $ c'
>>> re.sub('r?n', ' $ ', 'anbnc')
'a $ b $ c'
Posted by: Guest on March-30-2021

Code answers related to "replace \n with nothing pythin"

Python Answers by Framework

Browse Popular Code Answers by Language