title: Java remove non numeric characters from string except x
body: <p>I'm trying to remove all non numeric characters from string except for x. I'm a little confused.</p>
  
  <p>my current code</p>
  
  <pre><code>number.replaceAll("[^\\d\\x]", "")
  </code></pre>
  
  <p>Thanks in advance. </p>