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

A YYYY-MM-DD-hh-mm-ss rename

Participant ,
Jun 07, 2019 Jun 07, 2019

Copy link to clipboard

Copied

Since iView/Media Pro is about to hit the 32bit wall, I'm trying to figure new ways to manage the assets (DAM).

One item is file renaming. Today I'm trying Bridge, which I've had for decades (or so) but never used.

I managed to get it to rename like this:

2019-06-07-110713.jpg

but I want it like this:

2019-06-07-11-07-13.jpg

So Bridge almost does it, but that last block has hoursminuitesseconds as one block

Searching these here forums implies there's a way to do this with "regular expresseions" but I have not seen an example with plain hyphen separators (no spaces, no slashes, no colons)

Do any of you know how to do a YYYY-MM-DD-hh-mm-ss rename?

Views

822

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

Guide , Jun 07, 2019 Jun 07, 2019

Rename.jpg

The find string is:-

(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(.*)

The replace is:-

$1-$2-$3-$4-$5-$6

Likes

Translate

Translate
Guide ,
Jun 07, 2019 Jun 07, 2019

Copy link to clipboard

Copied

Rename.jpg

The find string is:-

(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})(.*)

The replace is:-

$1-$2-$3-$4-$5-$6

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
Participant ,
Jun 07, 2019 Jun 07, 2019

Copy link to clipboard

Copied

Thanks so much for that. Genius!

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
Participant ,
Jun 07, 2019 Jun 07, 2019

Copy link to clipboard

Copied

In the case of Burst photos, would Bridge be smart enough to also replace the <space>(1)'s, like these:

2016-03-08-08-01-58 (1).jpg

2016-03-08-08-01-58 (2).jpg

2016-03-08-08-01-58 (3).jpg

2016-03-08-08-01-58 (4).jpg

2016-03-08-08-01-58 (5).jpg

2016-03-08-08-01-58 (6).jpg

2016-03-08-08-01-58 (7).jpg

2016-03-08-08-01-58-1.jpg

with sequential dashes, like these?

2016-03-08-08-01-58-2.jpg

2016-03-08-08-01-58-3.jpg

2016-03-08-08-01-58-4.jpg

2016-03-08-08-01-58-5.jpg

2016-03-08-08-01-58-6.jpg

2016-03-08-08-01-58-7.jpg

2016-03-08-08-01-58-1.jpg

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
Guide ,
Jun 07, 2019 Jun 07, 2019

Copy link to clipboard

Copied

You could batch rename these with:-

ren2.jpg

Find is :-

(.{19})(..)(\d+)(.+)

Replace with :-

$1-$3

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
Participant ,
Jun 07, 2019 Jun 07, 2019

Copy link to clipboard

Copied

That's perfect.

Also, the fact that you seem to thin in parentheses and brackets and dots is impressive.

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
Community Expert ,
Jun 08, 2019 Jun 08, 2019

Copy link to clipboard

Copied

LATEST

Also, the fact that you seem to thin in parentheses and brackets and dots is impressive.

SuperMerlin's real name is actually Neo. The world looks like this to the One:

matrix.gif

So, compared to that, regular expressions are nothing!

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