From: "Cédric Finance" Date: 2007-11-09T22:11:11+09:00 Subject: Re: a problem related string(250 score) ------=_Part_9612_32457169.1194613873768 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The argument of the split method in java is a string representing a regexp. So you can do this: str.split("X+"); On Nov 9, 2007 1:20 PM, Johnson Wang <99100@163.com> wrote: > Dear C=E9dric Finance, > with ruby,we can use regex like this"str.split(/X+/)." > X+ stands for more than one 'X'.But java can not split the provided > text into an array by using regexm,right? > I have searched Java document for a long time,but maybe we couldn`t do > it like this. > My email is 99100@163.com, tks for your answer! > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_9612_32457169.1194613873768--