On 2014-11-05 18:05, C at rlos wrote: > I thing this work: > > stg='pythonpython' > foundationline=stg[ 0:( stg [ 1: ].index( stg[ 0 ])+1 ) ] > It doesn't work for the final example or "barbaz".