String method split(".") doesn't work

From: Ulf Nordlund (ulf.nordlund_at_frobozz.se)
Date: 01/08/05


Date: Sat, 08 Jan 2005 14:29:02 GMT

This works:

        String s = "aaa:bbb";
        String s0 = s.split(":")[0];

This don't (throws an ArrayOutOfBoundsException):

        String s = "aaa.bbb";
        String s0 = s.split(".")[0];

s.split() returns an empty array...
Any ideas why?
(I'm using j2sdk1.4.2_06)

Thanks,
/ulf