Matching PART of file names

Hello;
Is is possible to do the following?
I have a lots of files (thousands) in a folder. They are of this format
Photo1014135-1.jpeg
Photo1014135-2.jpeg
Photo1014135-3.jpeg
What I want to do is create a folder for the part of the name before the DASH-#-.jpeg and move any file names into it. So for examples above I want to move those 3 files into a folder named Photo1014135
For each "name" where name is "Photo1014135" there is a variable number of photos from 1 - 25
So some folders would need to have 25 images moved into them, some just 1 -- it just depends on the images.
Is it possible to have HAZEL look at the file name up and until the dash?
Thanks
Is is possible to do the following?
I have a lots of files (thousands) in a folder. They are of this format
Photo1014135-1.jpeg
Photo1014135-2.jpeg
Photo1014135-3.jpeg
What I want to do is create a folder for the part of the name before the DASH-#-.jpeg and move any file names into it. So for examples above I want to move those 3 files into a folder named Photo1014135
For each "name" where name is "Photo1014135" there is a variable number of photos from 1 - 25
So some folders would need to have 25 images moved into them, some just 1 -- it just depends on the images.
Is it possible to have HAZEL look at the file name up and until the dash?
Thanks