Re: splitting on a period ? <- please ignore

2008-06-04 Thread Vinny
Sorry, I sent this to the wrong "user" list. On Wed, Jun 4, 2008 at 11:06 PM, Vinny <[EMAIL PROTECTED]> wrote: > OK, this one baffles me :) > > "file.txt".split(".") produces an empty array ? > > > > > > testing it on the groovysh, (trying to that more often before posting > on the list) : > > >

Re: splitting on a period ? <- please ignore

2008-06-05 Thread Holger Stratmann
Vinny wrote: Sorry, I sent this to the wrong "user" list. Yes you did - and that's why I know a lot of Java and only a little Groovy. (and cannot see if anybody has answered your question) Anyway, this should be the same in Java and Groovy: String.split uses a REGULAR EXPRESSION to split. A pe