Skip to main content
jimhere
Known Participant
June 7, 2019
Answered

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

  • June 7, 2019
  • 1 reply
  • 1829 views

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?

This topic has been closed for replies.
Correct answer SuperMerlin

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

1 reply

SuperMerlin
SuperMerlinCorrect answer
Inspiring
June 7, 2019

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

jimhere
jimhereAuthor
Known Participant
June 7, 2019

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

SuperMerlin
Inspiring
June 7, 2019

You could batch rename these with:-

Find is :-

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

Replace with :-

$1-$3