Christoph Conrad <[EMAIL PROTECTED]> wrote:

> Hello Roger,
> 
> > since the length of the first sequence of the letter 'a' is 2. Yours
> > accepts it, right?
> 
> Yes, i misunderstood your requirements. So it must be modified
> essentially to that what Tim Chase wrote:
> 
>     m = re.search('^[^a]*a{3}b', 'xyz123aabbaaab')

...but that rejects 'aazaaab' which should apparently be accepted.


Alex
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to