Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

replace characters in string python

>>> a = '&#'
>>> print a.replace('&', r'&')
&#
>>> print a.replace('#', r'#')
&#
>>> 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #replace #characters #string #python
ADD COMMENT
Topic
Name
4+3 =