SyntaxFix
Write A Post
Hire A Developer
Questions
Try this code:
String str = "a12.334tyz.78x"; str = str.replaceAll("[^\\d.]", "");
Now str will contain "12.334.78".
str
"12.334.78"