Reordering Photo Filenames

A swapping-ground for Regular Expression syntax

Reordering Photo Filenames

Postby kudoz » Wed May 31, 2017 6:11 am

Hi guys, have used BRU for a while and love it but now I'm into the hard part and can't quite grasp RegEx.

Trying to rename 1500 profile photos I'm using for a project from

firstname.(preferredname).lastname.jpg

to

preferredname.lastname.jpg

Any help would be lovely as I'm just ending up with gobbledegook at the moment!

Thanks,
Scott
kudoz
 
Posts: 1
Joined: Wed May 31, 2017 6:08 am

Re: Reordering Photo Filenames

Postby KenP » Wed May 31, 2017 10:08 am

This should work.

RegEx (1)
Match: .*\((.*)\)(.*)
Replace: \1\2
KenP
 
Posts: 198
Joined: Sat Jul 30, 2016 11:25 am


Return to Regular Expressions