Android Studio Reg obtenga Float de Numéric String
float f = Float.valueOf("25.5sp.".replaceAll("[^\\d.]+|\\.(?!\\d)", ""));
// f = 25.5
Jittery Jackal
float f = Float.valueOf("25.5sp.".replaceAll("[^\\d.]+|\\.(?!\\d)", ""));
// f = 25.5