Login  Register

Re: Bug report split(string, delimiters) macro function

Posted by Rasband, Wayne (NIH/NIMH) [E] on Jul 25, 2014; 8:22am
URL: http://imagej.273.s1.nabble.com/Bug-report-split-string-delimiters-macro-function-tp5008864p5008896.html

On Jul 23, 2014, at 12:08 PM, Gabriel Schweighauser wrote:

> Dear List,
>
> The built-in macro language function shows an unexpected behaviour if an
> "empty" column is present in the string.
>
> Example:
>
> split("1,2,3,,5",",");
>
> returns the same array as:
>
> split("1,2,3,5",",");
>
> Hence, parsing tables with "empty" cells from csv-files does not work.
>
> Is there a way to fix this?

This bug is fixed in the latest ImageJ daily build (1.49e10).

-wayne

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html