String replacement : String Replace : String : Python examples (example source code) Organized by topic

C++
PHP
Python
Python Home »  String   » [  String Replace  ]  Screenshots 
 



String replacement




S = 'spammy'
S = S.replace('mm', 'xx')
print S


print 'aa$bb$cc$dd'.replace('$''SPAM')


           
       
Related examples in the same category
1.  Replace all Replace all
2.  Replace one Replace one
3.  String replace Demo String replace Demo
4.  String method: With a minor replacement String method: With a minor replacement
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.