get ride the first and last part of the name

Hi,

I have big package of pdf’s named as follows:

L00101-123095-98678f3e65916bb3246921aa3df2516c.pdf

Each has a unique chain but structure is the same (and number of digits the same as well). I would like to get rid of the first and last part of the name to have it in such a way:

Files should be like that

123095.pdf

Can you help?
Replace: .*?-(\d*)-.*
with: \1
Use regular expressions
Reply to #2:

Thanks a lot! :)