count string replace occurances

Xah Lee xah at xahlee.org
Mon Jun 13 01:55:38 CEST 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