I need to choose the original image in my example is a 'image1.jpg' with any extension.
image1-150x150.jpg
image1-225x300.jpg
image1-768x1024.jpg
image1.jpg
I've tried the following:
preg_grep("/-([0-9]+x[0-9])+/", $image);
How do I exclude other files and select "image1.jpg"?