Problem renaming several files with Regular Expression

Hello.. I need to rename a bunch of files in the form YYYYMMDDxxxxx.jpg
xxxxx is a different texts after the date.

I just need to add an space in date in this way: YYYY MM DD xxxxx.jpg

I already try this Regular Expression and it worked filtering: ^\d{4}\d{2}\d{2}.*

But what I need to add to the New Name?

This is my current work:

Your regex needs to include (...) around the things you want to capture for the \1, \2, etc. in the new name to insert anything:

Old Name: ^(\d{4})(\d{2})(\d{2}).*

But, since you're just inserting spaces at fixed positions, you can do this in an easier way without regex:

  • Make sure only the files you want to change are selected (not the extra five at the top of the list in your screenshot).

  • Ensure "Use preview list to build macros" is on. (It's already on in your screenshot.)

  • In the preview list at the bottom of the Rename window, click the first file in the New Name column.

  • Edit the name. Your edits will be applied to all the other names as well.

1 Like

Wowwww... Amazingggg. Thanks @Leo !!!!
It worked perfectly.

1 Like