Skip to main content
Participant
May 5, 2022
Answered

Renaming files keeping first 5 characters

  • May 5, 2022
  • 1 reply
  • 387 views

Hi all

Just trying to use the string substitution option in the Batch Rename tool, but not having much luck. I'm just trying to rename all my files keeping only the first 5 characters of the filenames, so for example

From
17640 - Test item 1.png
18650 - Test item 2 with added extras.png

To

17640.png
18650.png

 

Can anyone point me in the right direction. Many thanks

This topic has been closed for replies.
Correct answer Kukurykus

Find: (.{5}).*

Replace with: $1

1 reply

Kukurykus
KukurykusCorrect answer
Legend
May 5, 2022

Find: (.{5}).*

Replace with: $1

Participant
May 5, 2022

You hero, that's perfect thank you so much 🙂

Kukurykus
Legend
May 5, 2022

Mark as correct answer if that works for you the way you wished 😉