I have thumbnail code that makes thumbnails with the following names:
mypic1_75x75.JPG
mypic1_300x300.JPG
mypic2_150x75.gif
mypic2_100x100.gif
mypic3_150x75.jpeg
mypic3_100x100.jpeg
I want to just unlink all with the pic name. So if I wanted to unlink mypic1 it would unlink mypic1_75x75.JPG and mypic1_300x300.JPG. It wouldn't matter the ending or extension. Any ideas?