Hello,
To achieve the removal of all characters between brackets (including the brackets and any following spaces) using BRU (Bulk Rename Utility), you can follow these steps:
Steps to Remove Characters Between Brackets in BRU
1. Open Bulk Rename Utility: Launch the application.
2. Select Files: Navigate to the folder containing the files you want to rename. Select the files you wish to modify.
3. Use the "Replace" Feature:
In the "Rename" section, find the "Replace" feature (usually located in the middle of the interface).
Enter the following in the "Text to be Replaced" field:
- Code: Select all
\s*\(.*?\)\s*
Leave the "Replace with" field empty, as you want to remove the text.
4. Enable Regular Expressions:
Ensure that the "Regular Expressions" option is checked. This allows BRU to interpret the input as a regex pattern.
5. Preview Changes: Look at the preview pane at the bottom to see how the filenames will look after the changes.
6. Apply Changes: If everything looks correct, click on the "Rename" button to apply the changes.
Explanation of the Regex
\s*: Matches any whitespace characters (spaces, tabs) before the opening bracket.
\(: Matches the literal opening bracket.
.*?: Matches any characters (non-greedy) until the first closing bracket.
\): Matches the literal closing bracket.
.\s*: Matches any whitespace characters that may follow the closing bracket.
This regex effectively removes everything between the brackets, including the brackets themselves and any spaces around them.
Example
Given the files:
(33) - filename1.text
(sim) - filename2.txt
After applying the regex, the result will be:
filename1.text
filename2.txt