SyntaxFix
Write A Post
Hire A Developer
Questions
Use a regex such as [^0-9] to remove all non-digits.
[^0-9]
From there, just use Integer.parseInt(String);
Integer.parseInt(String);