Scott David Daniels wrote: > micklee74 at hotmail.com wrote: <SNIP> > print list(positions('1234', 'abcd efgd 1234 fsdf gfds abcde 1234')) > > prints: > [10, 31] > Nicer than mine ;) Shows I need to get a job where I use python more!