Stephen Nelson-Smith wrote:
> On 9/20/07, cedric briner <[EMAIL PROTECTED]> wrote:
>
>> To let you know, I'm writing a script to generate bind9 configuration
>> from a nis hosts table. So I was trying in a one re to catch from this:
>>
>> [ ...] [# comment]
>> e.g:
>> 10.12.23.45 hostname1 alia
Kent Johnson wrote:
> cedric briner wrote:
>> To let you know, I'm writing a script to generate bind9 configuration
>> from a nis hosts table. So I was trying in a one re to catch from this:
>>
>> [ ...] [# comment]
>> e.g:
>> 10.12.23.45 hostname1 alias1 alias2 alias3 # there is a nice comment
cedric briner wrote:
> To let you know, I'm writing a script to generate bind9 configuration
> from a nis hosts table. So I was trying in a one re to catch from this:
>
> [ ...] [# comment]
> e.g:
> 10.12.23.45 hostname1 alias1 alias2 alias3 # there is a nice comment
> 37.64.86.23 hostname2
>
Stephen Nelson-Smith wrote:
> On 9/19/07, cedric briner <[EMAIL PROTECTED]> wrote:
>
>> Hello,
>>
>> I do not understand the behaviour of this:
>>
>> import re
>> re.search('(a)*','aaa').groups()
>> ('a',)
>>
>> I was thinking that the ``*'' will operate on the group delimited by the
>> parenthe
On 9/20/07, cedric briner <[EMAIL PROTECTED]> wrote:
> To let you know, I'm writing a script to generate bind9 configuration
> from a nis hosts table. So I was trying in a one re to catch from this:
>
> [ ...] [# comment]
> e.g:
> 10.12.23.45 hostname1 alias1 alias2 alias3 # there is a nice com
Kent Johnson wrote:
> cedric briner wrote:
>> Hello,
>>
>> I do not understand the behaviour of this:
>>
>> import re
>> re.search('(a)*','aaa').groups()
>> ('a',)
>>
>> I was thinking that the ``*'' will operate on the group delimited by the
>> parenthesis. And so, I was expecting this result:
>>
On 9/19/07, cedric briner <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I do not understand the behaviour of this:
>
> import re
> re.search('(a)*','aaa').groups()
> ('a',)
>
> I was thinking that the ``*'' will operate on the group delimited by the
> parenthesis. And so, I was expecting this result:
> (
cedric briner wrote:
> Hello,
>
> I do not understand the behaviour of this:
>
> import re
> re.search('(a)*','aaa').groups()
> ('a',)
>
> I was thinking that the ``*'' will operate on the group delimited by the
> parenthesis. And so, I was expecting this result:
> ('a', 'a', 'a')
>
> Is there
Hello,
I do not understand the behaviour of this:
import re
re.search('(a)*','aaa').groups()
('a',)
I was thinking that the ``*'' will operate on the group delimited by the
parenthesis. And so, I was expecting this result:
('a', 'a', 'a')
Is there something I'am missing ?
Ced.
--
Cedric BR