by Admin » Mon Dec 29, 2025 1:21 am
You can do this easily with Bulk Rename Utility using either the Filter + normal Rename workflow or a single RegEx rename that moves the positional token (e.g. "B1", "C2") to the front.
Two approaches (pick one):
A — Quick: filter to show only one position at a time, then rename
1. Open the folder in BRU. In Filters (12) check "RegEx" and enter the pattern for the position you want (for example B1 or C2). Example to show only B1 files: B1
- You can also use a character class like B[0-9] to match B followed by any digit.
2. Select all files shown in the file list.
3. Use a simple Rename rule (e.g. Move/Copy (6) or Add (7)) or use RegEx(1) to reorder. Preview then click Rename.
Notes: filtering only affects what is displayed/selected — it doesn’t rename files outside the list.
B — One-pass regex: move any positional indicator to the start for all files
1. In RegEx (1) (left-most panel) enter a Match and Replace. Example that moves a token like B1 or C2 (single letter + single digit) wherever it appears to the front:
- Match: (.*?)([A-Z]\d)(.*)
- Replace: \2\1\3
2. Make sure Inc. Ext. is OFF (unless the token may be inside the extension). Leave other options default.
3. Select the files you want (you can use Filters (12) to restrict the set first), click Preview to verify, then Rename.
Explanation of the regex:
- (.*?) — minimal prefix (anything before the positional token)
- ([A-Z]\d) — captures the positional token (capital letter then digit). Change to (B[0-9]|C[0-9]|...) or [A-Za-z]\d or B[12]|C[12] etc to match your exact tokens
- (.*) — suffix after the token
Replace \2\1\3 places the token first, then original prefix and suffix.
Examples:
- If tokens are specifically "B1" or "C2" only:
- Match: (.*?)(B1|C2)(.*)
- Replace: \2\1\3
- If tokens are letter-digit (any letter, any digit):
- Match: (.*?)([A-Za-z]\d)(.*)
- Replace: \2\1\3
Tips and cautions
- Always click Preview to verify results before performing Rename.
- If you only want to affect the filename (not extension) ensure Inc. Ext. is OFF.
- If tokens can appear multiple times and you need special handling (first vs last occurrence), adjust the regex (e.g., greedy vs lazy matching) or run multiple passes.
- You can also use Filters (12) with simple masks (or RegEx) to process one token at a time if that’s safer.