sort files with slightly different names into same folder

Hi, i just bought hazel and found a lot of free lectures with each between 5 and 10 parts that i would love to automatically store in folders according to their name.
Problem is that the file names are "subject_part1.mp3" "subject_part2.mp3" etc
so if i sort into new folder based on the name a lot of folders will be made - and since i have more than 2000 small parts of lectures i really need this to be fixed
So is there a way to make the folder name only look at the first part of the filenames so they will get sorted into a folder called "subject" without the "part_x"
The recording time or length of the lectureparts are not useful
Aurin
Finland
Problem is that the file names are "subject_part1.mp3" "subject_part2.mp3" etc
so if i sort into new folder based on the name a lot of folders will be made - and since i have more than 2000 small parts of lectures i really need this to be fixed
So is there a way to make the folder name only look at the first part of the filenames so they will get sorted into a folder called "subject" without the "part_x"
The recording time or length of the lectureparts are not useful
Aurin
Finland