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

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


Gerard Flanagan <grflana... at gmail.com> 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