android studio reg get float from numeric string

Solutions on MaxInterview for android studio reg get float from numeric string by the best coders in the world

showing results for - "android studio reg get float from numeric string"
Jacopo
27 Mar 2017
1float f = Float.valueOf("25.5sp.".replaceAll("[^\\d.]+|\\.(?!\\d)", ""));
2// f = 25.5
3