Previous blank.gif blank.gif Home Page

Built-in function replace - replace (str, old, new[, maxsplit]) -> string


SYNOPSIS

import HTMLgen
replace (str, old, new[, maxsplit]) -> string

DESCRIPTION

Return a copy of string str with all occurrences of substring old replaced by new. If the optional argument maxsplit is given, only the first maxsplit occurrences are replaced.

SEE ALSO

HTMLgen


Previous blank.gif blank.gif Home Page
Buzz.gif

Copyright © Robin Friedrich
All Rights Reserved
Comments to author: friedrich@pythonpros.com
Generated: Sun Jun 14 1998