title: Replacing "name" attribute using Javascript regex
body: <p>I've got a form on a website with a bunch of input elements.  The name attribute for these elements is of the form "property-0".  However, the user may need multiple fieldsets just like the current one, so I clone the fieldset with jQuery clone(), but then I need to increment the number on the end.  The number could be above 10, so I can't just select the last character.</p>
  
  <p>This is what I am trying:</p>
  
  <pre><code>name.replace(/([0-9]+)$/, String(Number('$1')+1));
  </code></pre>
  
  <p>but it just gives me <code>property-NaN</code>.  Anyone know what I'm doing wrong?</p>