For example, the long string is 'abcabc' and the given string is 'abc', then 'abc' appears 2 times in 'abcabc'. Currently, I am calling 'find()' multiple times to figure out how many times a given string appears in a long string. I'm wondering if there is a function in python which can directly return this information. -- http://mail.python.org/mailman/listinfo/python-list
- Is there a command that returns the number of substrings... Peng Yu
- Re: Is there a command that returns the number of s... Stephen Hansen
- Re: Is there a command that returns the number of s... Gerard Flanagan
- Re: Is there a command that returns the number of s... alex23
- Re: Is there a command that returns the number ... Gerard Flanagan
- Re: Is there a command that returns the num... Gabriel Genellina
- Re: Is there a command that returns the number ... alex23