Re: What is "\\s+"



On Mon, 5 Dec 2005 12:08:32 -0000, "Allan Bruce" <amb@xxxxxxx> wrote,
quoted or indirectly quoted someone who said :

>I am looking through some code which parses csv files, and this is being
>used to split the files. The variable is called separator, but I dont know
>what it is, can somebody clarify? What is "\\s+" ??

There are other tools if this one is not well documented. See
http://mindprod.com/jgloss/csv.html

That is a regex. It means one or more whitespace characters will be
considered a separator. Normally it is a single comma.
see http://mindprod.com/jgloss/regex.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.