Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python replace with something else

>>> import re
>>> re.sub('
?
', ' $ ', 'a
b
c')
'a $ b $ c'
>>> re.sub('
?
', ' $ ', 'a
b
c')
'a $ b $ c'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #replace
ADD COMMENT
Topic
Name
8+1 =