find all index positions

alisonken1 alisonken1 at gmail.com
Thu May 11 15:14:53 EDT 2006


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!




More information about the Python-list mailing list