On Thu, May 12, 2005 at 04:53:06PM +0200, "TSa (Thomas Sandlaï)" wrote:
> Autrijus Tang wrote:
> >    pugs> split /(..)*/, 1234567890
> >    ('', '12', '34', '56', '78', '90')
> >
> >Is this sane?
> 
> Why the empty string match at the start?

I don't know, I didn't invent that! :-)

    $ perl -le 'print join ",", split /(..)/, 123'
    ,12,3

Thanks,
/Autrijus/

Attachment: pgpMbWBoMX6xB.pgp
Description: PGP signature

Reply via email to