Page 1 of 1

Move digits from beginning to end

PostPosted: Mon Apr 01, 2019 9:58 am
by Rog(RJ)
I have a large number of photos that have been saved with a variable number of digits at the start of the file names. I need to move the digits from the start of the filename to the end for cataloguing

Examples

From 123Carbon_Dioxide.jpg to Carbon_Dioxide123.jpg
From 34871Sodium_Carbonate.jpg to Sodium_Carbonate34871.jpg
From 4186Carbon_Dioxide.jpg to Carbon_Dioxid4186.jpg

Is there a simple way of doing this, please?

Re: Move digits from beginning to end

PostPosted: Mon Apr 01, 2019 12:24 pm
by therube
Try...

1:RegEx
Code: Select all
Match:  ^(\d+)(.*)
Replace:  \2\1

Re: Move digits from beginning to end

PostPosted: Mon Apr 01, 2019 8:43 pm
by Rog(RJ)
Excellent. Thanks very much