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?
Sure, one possible way is using this regex:
FIND: (^.{2})(?:.+,\s)(.)(?:.+)
REPLACE: $2$1
As in this screenshot:
P.S. As this is not a scripting question, the forum moderators should probably move this topic back to the general forum.
Copy link to clipboard
Copied
Sure, one possible way is using this regex:
FIND: (^.{2})(?:.+,\s)(.)(?:.+)
REPLACE: $2$1
As in this screenshot:
P.S. As this is not a scripting question, the forum moderators should probably move this topic back to the general forum.
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
Copy link to clipboard
Copied
Hi Stephen
That is fantastic - did exactly what I needed! Thank you very much.
Copy link to clipboard
Copied
No worries, enjoy!