Is there a command that returns the number of substrings in a string?

alex23 wuwei23 at
Tue Oct 27 02:10:23 CET 2009

Gerard Flanagan <grflana... at> wrote:
> def count(text, *args):

Other than the ability to handle multiple substrings, you do realise
you've effectively duplicated str.count()?

More information about the Python-list mailing list