• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Renaming files keeping first 5 characters

New Here ,
May 05, 2022 May 05, 2022

Copy link to clipboard

Copied

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

TOPICS
Batch , Image processor , Scripting

Views

59

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , May 05, 2022 May 05, 2022

Find: (.{5}).*

Replace with: $1

Likes

Translate

Translate
LEGEND ,
May 05, 2022 May 05, 2022

Copy link to clipboard

Copied

Find: (.{5}).*

Replace with: $1

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 05, 2022 May 05, 2022

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 05, 2022 May 05, 2022

Copy link to clipboard

Copied

LATEST

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines