title: How to reverse words in a string and letters in those words unless the word is a number
body: <p>Hello &amp; it's nice to be with you all.
  I was successful in reversing arrays using the built-in functions    <code>.split('').reverse().join('')</code> presented in this site, but I need to keep digits in order, not reversed. Is there anything to do or to add to let it exclude the digits from being reversed, or to re-reverse the digits only after reversing the full array?
  Here's the array flipping function,</p>
  
  <pre><code>function reversey(){
  var text = document.getElementById('input').value;
  text = text.replace(/\r/gi,'');
  text = text.replace(/([^a-z 0-9\n])/gi,' $1 ');
  text = text.split('\n').reverse().join('\n');
  text = text.split('').reverse().join('');
  text = text.replace(/ ([^a-z 0-9\n]) /gi,'$1');
  document.getElementById('input').value = text;}
  </code></pre>
  
  <p>The 'input' is the text-field's ID.
  I appreciate your help everyone, thanks in advance.</p>
  
  <p><b>Example</b></p>
  
  <p><em>Input:</em> <code>Hello World 123.45</code></p>
  
  <p><em>Desired output:</em> <code>123.45 dlroW olleH</code></p>
  
  <p><em>Current output:</em> <code>54.321 dlroW olleH</code></p>