the user should input something like this string  "[1 -2.5 3;4 5.25 6;7 8 9.12]"
and i want to cut it to be like only the numbers in it so it appears like this 
1  -2.5  3  4  5.25  6  7  8  9.12
well i've tried the code below but it doesn't seem to work
    string cutter(string s){
        string cuttedstring="";
        string fullstring="";
        for(int i=0; i <= s.length(); i++ ){
            if(s.at(i)!= "[" && s.at(i)!= "]" && s.at(i)!= ";"){
                for(int j=i; j<15 ; j++ ){
                    do{
                        cuttedstring += s.at(j);
                     }
                    while(s.at(j)!= " ");
                    fullstring = cuttedstring + " " ;
                    cuttedstring = "";
                }
            }
        }
        return fullstring;
    }
 
    