Re: Strings in Python

2007-02-09 Thread Johny
Thanks ALL for help and ideas L -- http://mail.python.org/mailman/listinfo/python-list

Re: Strings in Python

2007-02-08 Thread MRAB
On Feb 8, 6:32 pm, [EMAIL PROTECTED] wrote: > On Feb 8, 8:28 am, "Johny" <[EMAIL PROTECTED]> wrote: > > > > > Playing a little more with strings, I found out that string.find > > function provides the position of > > the first occurance of the substring in the string. > > Is there a way how to find

Re: Strings in Python

2007-02-08 Thread attn . steven . kuo
On Feb 8, 8:28 am, "Johny" <[EMAIL PROTECTED]> wrote: > Playing a little more with strings, I found out that string.find > function provides the position of > the first occurance of the substring in the string. > Is there a way how to find out all substring's position ? > To explain more, > let's s

Re: Strings in Python

2007-02-08 Thread Shawn Milo
On 2/8/07, Gary Herron <[EMAIL PROTECTED]> wrote: > Johny wrote: > > Playing a little more with strings, I found out that string.find > > function provides the position of > > the first occurance of the substring in the string. > > Is there a way how to find out all substring's position ? > > To ex

Re: Strings in Python

2007-02-08 Thread Shawn Milo
On 8 Feb 2007 08:28:25 -0800, Johny <[EMAIL PROTECTED]> wrote: > Playing a little more with strings, I found out that string.find > function provides the position of > the first occurance of the substring in the string. > Is there a way how to find out all substring's position ? > To explain more,

Re: Strings in Python

2007-02-08 Thread Gary Herron
Johny wrote: > Playing a little more with strings, I found out that string.find > function provides the position of > the first occurance of the substring in the string. > Is there a way how to find out all substring's position ? > To explain more, > let's suppose > > mystring='12341' > import stri