title: Java - regex to match any integer
body: <p>I'm having a problem having a regex that matches a String with any int.</p>
  
  <p>Here's what I have:</p>
  
  <pre><code>if(quantityDesired.matches("\b\d+\b")){.......}
  </code></pre>
  
  <p>But Eclipse gives me: </p>
  
  <pre><code>Invalid escape sequence (valid ones are  \b  \t  \n  \f  \r  \"  \'  \\ )
  </code></pre>
  
  <p>I've looked through other similar questions and I've tried using a double backslash but that doesn't work. Suggestions?</p>