title: Remove leading trailing non numeric characters from a string in Java
body: <p>I need to strip off all the leading and trailing characters from a string upto the first and last digit respectively.  </p>
  
  <p>Example : <code>OBC9187A-1%A</code><br>
  Should return : <code>9187A-1</code> </p>
  
  <p>How do I achieve this in Java?  </p>
  
  <p>I understand regex is the solution, but I am not good at it.<br>
  I tried this <code>replaceAll("([^0-9.*0-9])","")</code><br>
  But it returns only digits and strips all the alpha/special characters.</p>