March 2003
Intermediate to advanced
656 pages
39h 30m
English
replace
s.replace(old,new,maxsplit=sys.maxint)Returns a copy of s with the first
maxsplit (or fewer, if there are fewer)
non-overlapping occurrences of substring
old replaced by string
new (e.g.,
'banana'.replace('a','e',2) is
'benena').
Read now
Unlock full access