count string replace occurances

Xah Lee xah at xahlee.org
Sun Jun 12 19:55:38 EDT 2005


if i have
mytext.replace(a,b)
how to find out many many occurances has been replaced?

 Xah
 xah at xahlee.orghttp://xahlee.org/




More information about the Python-list mailing list