title: Most elegant way to detect if a String is a number?
body: <p>Is there a better, more elegant (and/or possibly faster) way than</p>
  
  <pre><code>boolean isNumber = false;
  try{
     Double.valueOf(myNumber);
     isNumber = true;
  } catch (NumberFormatException e) {
  }
  </code></pre>
  
  <p>...?</p>
  
  <hr>
  
  <p><strong>Edit</strong>:
  Since I can't pick two answers I'm going with the regex one because a) it's elegant and b)  saying "Jon Skeet solved the problem" is a tautology because Jon Skeet himself is the solution to all problems.</p>