get ride the first and last part of the name

Advanced Renamer forum
#1 : 05/03-21 17:10
Karolina Liszka
Posts: 2
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?
#2 : 05/03-21 20:47
David Lee
Posts: 1125
Replace: .*?-(\d*)-.*
with: \1
Use regular expressions
#3 : 05/03-21 21:37
Karolina Liszka
Posts: 2
Reply to #2:

Thanks a lot! :)