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

Renaming images in bridge

New Here ,
Oct 26, 2017 Oct 26, 2017

Copy link to clipboard

Copied

I've only just discovered bridge, and think it may be able to do exactly what I need, using string substitution.

I have a folder of image files labelled Surname, First.jpg  for example Smith, John.jpg

I want to change the filename to the first letter of their firstname and the first 2 letters of the surname for example JSM.jpg

Is this achievable?

TOPICS
Scripting

Views

728

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

Community Expert , Oct 28, 2017 Oct 28, 2017

Sure, one possible way is using this regex:

FIND: (^.{2})(?:.+,\s)(.)(?:.+)

REPLACE: $2$1

As in this screenshot:

regex.png

P.S. As this is not a scripting question, the forum moderators should probably move this topic back to the general forum.

Votes

Translate

Translate
Community Expert ,
Oct 28, 2017 Oct 28, 2017

Copy link to clipboard

Copied

Sure, one possible way is using this regex:

FIND: (^.{2})(?:.+,\s)(.)(?:.+)

REPLACE: $2$1

As in this screenshot:

regex.png

P.S. As this is not a scripting question, the forum moderators should probably move this topic back to the general forum.

Votes

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
Community Expert ,
Oct 28, 2017 Oct 28, 2017

Copy link to clipboard

Copied

Note to self to test tomorrow... Can Bridge do this in a single line entry with only the regex performing the case conversion?

$U2$U1

Votes

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 ,
Oct 29, 2017 Oct 29, 2017

Copy link to clipboard

Copied

Hi Stephen

That is fantastic - did exactly what I needed!  Thank you very much.

Votes

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
Community Expert ,
Oct 29, 2017 Oct 29, 2017

Copy link to clipboard

Copied

LATEST

No worries, enjoy!

Votes

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