title: Regex image size - wrong output
body: <p>I am trying to replace an image size from an input URL.</p>
  
  <p>Regex:</p>
  
  <pre><code>imgurl = imgurl.replace(/-[^.-]+(?=\.jpg)/, "-200x200");
  </code></pre>
  
  <p>Input image URL:</p>
  
  <pre><code>http://www.site-address.com/wp-content/uploads/2014/04/della-and-perry-300x300.jpg
  </code></pre>
  
  <p>Expected Output:</p>
  
  <pre><code>http://www.site-address.com/wp-content/uploads/2014/04/della-and-perry-200x200.jpg
  </code></pre>
  
  <p>Actual Output:</p>
  
  <pre><code>http://www.site-address.com/wp-content/uploads/2014/04/della-and-200x200.jpg
  </code></pre>
  
  <p>Not sure what I did here to get it to replace those letters as well. Regex isn't my strength, I'm still learning.</p>
  
  <p>I would appreciate any help I can get. Thanks!</p>