title: JavaScript: add or subtract from number in string
body: <p>I have a string that looks like "(3) New stuff" where 3 can be any number.<br>
  I would like to add or subtract to this number.  </p>
  
  <p>I figured out the following way:</p>
  
  <pre><code>var thenumber = string.match((/\d+/));
  thenumber++;
  string = string.replace(/\(\d+\)/ ,'('+ thenumber +')');
  </code></pre>
  
  <p>Is there a more elegant way to do it?</p>