title: how to swap the first number and last number in a line?
body: <p>I want to swap first number and last number ,but while doing so am not getting proper output </p>
  
  <pre><code>echo 1234jj h777 jj89 | sed 's/^\([0-9]\{1,\}\)\(.*\)\([0-9]*\{1,\}\)$/\3\2\1/'
  </code></pre>
  
  <p>I'm getting output as:</p>
  
  <pre><code>9jj h777 jj81234
  </code></pre>
  
  <p>Expected output:</p>
  
  <pre><code>89jj h777 jj81234
  </code></pre>
  
  <p>why it is not considering 89 as number (it is taking only 9)?</p>