replace words

hagai26 at gmail.com hagai26 at gmail.com
Wed Oct 26 03:02:39 EDT 2005


What is the way for replacing in a string from . to . the sentence?
for example:
"been .taken.  it may be .left. there,
even if the .live coals were not. cleared"
I want to do this-> replace(\.(.*)\.,\.start (1) end\.)
result:
"been .start taken end.  it may be .start left end. there,
even if the .start live coals were not end. cleared"




More information about the Python-list mailing list