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

alex23 wuwei23 at gmail.com
Mon Oct 26 21:10:23 EDT 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