Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python replace character in string

text = 'Mohammad_Sadegh_Eslahi'
text = text.replace('_', ' ')
print(text)
>>>
'Mohammad Sadegh Eslahi'
 
PREVIOUS NEXT
Tagged: #python #replace #character #string
ADD COMMENT
Topic
Name
6+8 =