On Tue, 14 Dec 2004 14:05:38 +0100, Franz Steinhaeusler
<[EMAIL PROTECTED]> wrote:

>given a string:
>
>st="abcdatraataza"
>    ^   ^     ^ ^ (these should be found)
>I want to get the positions of all single 'a' characters.
>(Without another 'a' neighbour)
>[...]

Thank you again, Pádraig and Steve,
your solution looks still more compact.

There are several regular expression, that this could 
almost justify an own newsgroup.

Or is there another group, where these questions are more
appropriate?

-- 
Franz Steinhaeusler
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to