I have various img src's like this: http://mydomain.com/wp-content/uploads/2012/10/img-80x93.jpg http://mydomain.com/wp-content/uploads/2012/10/image-80x110.jpg ...
I want to change them to: http://mydomain.com/wp-content/uploads/2012/10/img.jpg http://mydomain.com/wp-content/uploads/2012/10/image.jpg ...
Basically what I need is to remove from -80x until .jpg
I tried to remove "-80x" + all the numbers after that:
.replace('-80x'/\d+/g,''));
but didn't work... and others replaces but with no result.
Could you help me with this?