The replace method returns a string where all the occurrences of one string have been replaced by another: : Replace « String « Python Tutorial






print 'This is a test'.replace('is', 'eez')
5.23.Replace
5.23.1.The replace method returns a string where all the occurrences of one string have been replaced by another:
5.23.2.Search and Replace in Strings
5.23.3.replacing a substring