RegEx: find all occurances of a single character in a string

Franz Steinhaeusler franz.steinhaeusler at utanet.at
Tue Dec 14 14:10:06 CET 2004


On Tue, 14 Dec 2004 14:05:38 +0100, Franz Steinhaeusler
<franz.steinhaeusler at utanet.at> wrote:

sorry
>r=re.compile('[^a]a([^a]') 
 r=re.compile('[^a]a[^a]') 

I meant.

-- 
Franz Steinhaeusler



More information about the Python-list mailing list