title: Regex for remove a certain number of character after a match
body: <p>I'm looking for a simple regular expression for this,</p>
  
  <p>This is the input:</p>
  
  <pre><code>This is a sample text www.testdomainname.com/picsinsideit/stunningpictureofkays1381737242g8k4n-280x428.jpg this is also sample text
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>This is a sample text www.testdomainname.com/picsinsideit/stunningpictureofkays1381737242g8k4n.jpg this is also sample text
  </code></pre>
  
  <p>I want to remove the text <code>-280x428</code>, i.e. remove 8 characters before exactly the text <code>.jpg</code>
  The width and height will be different for each images. so I want to search for text <code>.jpg</code> after it matches remove the 8 characters before it.</p>
  
  <p>I was searched for many questions in here but didn't find the solution for it, please help me.</p>