Java remove non numeric characters from string except x
java, regex
Solution
use this: `[^x0-9]`
You may check it on http://gskinner.com/RegExr/
Problem
I'm trying to remove all non numeric characters from string except for x. I'm a little confused. my current code ``` number.replaceAll("[^\\d\\x]", "") ``` Thanks in advance.