Replace all June 201* with 201*-06

Bulk Rename Utility How-To's

Replace all June 201* with 201*-06

Postby vladimir » Mon Jul 15, 2024 8:12 am

How? Thanks
vladimir
 
Posts: 2
Joined: Mon Jul 15, 2024 8:11 am

Re: Replace all June 201* with 201*-06

Postby vladimir » Mon Jul 15, 2024 8:20 am

Got the answer from Perplexity:

To replace all instances of "June 201*" with "201*-06" in Bulk Rename Utility, you can use the following steps:

Open Bulk Rename Utility and navigate to the folder containing the files you want to rename.
Select the files you want to rename.
Set up the renaming parameters:
In the "RegEx (1)" section, enter the following:
Match: June (201.)
Replace: \1-06
This setup uses a regular expression to match "June 201" followed by any character (represented by .) and replaces it with "201" followed by the same character and "-06".
Preview the changes in the "New Name" column to ensure it looks correct.
Click "Rename" to apply the changes.

Here is a step-by-step breakdown of the parameters:

Match: June (201.)
This pattern matches "June 201" followed by any single character. The parentheses create a capture group for "201" followed by any character.
Replace: \1-06
This replacement pattern uses the captured group (denoted by \1), which is "201" followed by any character, and appends "-06" to it.

This method ensures that "June 201*" is correctly transformed into "201*-06" for all matching filenames.
vladimir
 
Posts: 2
Joined: Mon Jul 15, 2024 8:11 am

Re: Replace all June 201* with 201*-06

Postby Admin » Tue Jul 16, 2024 3:16 am

Hi, form version 3.5, BRU now also supports wildcards in Replace (3).

So this can be used as well:

Replace (3)
Replace: June 201?
With: 201?-06

? = single character
Admin
Site Admin
 
Posts: 2926
Joined: Tue Mar 08, 2005 8:39 pm


Return to How-To