Issue
I Have string like so: "He3llo5"
How do I strip this String so that only the numbers remain?
Desired result:
35
Solution
You can use the Pattern Example
Pattern intsOnly=Pattern.compile("\\d+");
Matcher make=intsOnly.matcher(string);
make.find();
string=make.group();
Answered By - Mohsen El Sayed
Answer Checked By - Clifford M. (JavaFixing Volunteer)