Forum: PC-Programmierung regex string and use results java


von gooo (Gast)


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 = "#(.*?)#"

von Andreas R. (daybyter)


Lesenswert?


Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.