title: How to remove remove to take only numerical values from string using regex java?
body: <p>I have the following string:</p>
  <pre><code>   String textString = &quot;Power for CH2 234 45&quot;;
  </code></pre>
  <p>I need a regex to remove white spaces between numbers but also want to avoid if there is a non-numeric value before a number like</p>
  <pre><code>String texString=&quot;23445&quot;;
  </code></pre>
  <p>Here want to avoid the numerical value after any non-numeric value  Here in my String want to avoid the numeric value also after H there are 2 but I just want to make a string like &quot;23445&quot;.</p>