regex string and use results java

Gast #4127564
Lesenswert?

I have string "#;1;2;8;33;##;9;7;44;6;##;-7;11;3;48;#"
and I will like to implement it into an array, each line built with the 
numbers between #.

float [][] array1 = new array [3][4]
array1[0] = (1,2,8,33);
array1[1] = (9,7,44,6);
array1[2] = (1,2,8,33);

I will like to do it with regular expression, but I do not know the 
function.
My regular expression will be: rule = "#(.*?)#"

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren