by Admin » Wed Jan 14, 2026 1:39 am
You can do all of those in one operation using the GUI by combining Replace (3), Remove (5) and Case (4) (and Name Segment) in a single job.
You do not need JavaScript unless you want extra logic. Key points: BRU processes panels left to right in the fixed order shown in the UI, so arrange each transformation into the panel that runs at the correct point (Replace(3) runs before Case(4), Remove(5) runs earlier than Add(7), etc.). Always Preview before Rename and save the criteria to a Favourite (.bru) for reuse.
Recommended step-by-step setup
1) Replace literal sequences (Replace (3))
- Use Replace (3) for simple literal swaps. It supports multiple replacements using | as a separator.
- Example values (click the multiple-replacements editor for convenience):
- Replace: .-.|…|..| |_
- With: .|.|.|.|.
Explanation/order matters: put .-. first so it becomes . before other dot-replacements collapse.
Notes:
- Replace (3) is literal by default (good for these exact characters). If you do need regex here you can prefix the Replace entry with \regex\ (but the /g flag is not supported in that mode).
- You can paste pairs into the Replace editor as columns (tab-separated) for many pairs.
2) Strip the unwanted symbol characters (Remove (5))
- Open Remove (5) panel and either:
- Tick Sym. (removes a broad set of symbols), or
- In Chars (or Words) put the exact characters you want removed, e.g. ()[]{} (or use Chars with the explicit list).
- If you only want to remove those brackets and keep other punctuation, put ()[]{} in Chars (or use Sym. if you want to strip lots of punctuation).
3) Collapse duplicate dots (optional but often helpful)
- If your previous replacements can produce sequences like "...." or "..", you can either:
- Add a second Replace (3) pass mapping .. -> . (include it in the same Replace list, e.g. include ..), or
- Use RegEx(1) with a global regex to collapse repeated dots: Match: \.{2,}/g Replace: . (see below if you prefer regex).
4) Change only the first character case (Case (4) + Name Segment)
- Use Name Segment to restrict changes to the first character:
- Name Segment From: 1 To: 1
- In Case (4) select the casing you want (e.g., Upper to capitalize the first char).
- This will apply the Case change to only character 1.
- After previewing, you can reset Name Segment if you later want full-name case operations.
5) Order & preview
- You generally do not need to change the default panel order for the sequence above because Replace (3) runs before Case (4) and Remove(5) is earlier in the pipeline. But verify in Preview that everything happens in the order you expect.
- Use the Preview button (or select files to see New Name column) to check results on a representative set.
Alternative: Using RegEx(1) (single multi-regex pass)
- If you prefer regex and want everything in one RegEx pass, use RegEx (1) with multiple Match/Replace pairs separated by (?X).
- Example multiple pairs (conceptual):
- Match: \.\-\. (?X) … (?X) \.{2,} (?X) \s (?X) _
- Replace: . (?X) . (?X) . (?X) . (?X) .
- Important: append /g to match patterns where you need global replacement (e.g., \.{2,}/g) — RegEx(1) supports /g and /i.
- RegEx is powerful but a bit more advanced; use the RegEx Assistant (link in the RegEx panel) to test patterns.
Save and reuse
- Once you have the panels configured and preview OK, save the renaming criteria as a Favourite (.bru) so you can run the same job on any folder quickly.
Quick checklist for your exact list
- Replace (3):
- Replace: .-.|…|..| |_
- With: .|.|.|.|.
- Remove (5):
- Chars: ()[]{} OR tick Sym. (if broader symbol removal is desired)
- Name Segment:
- From 1 To 1
- Case (4):
- Mode: Upper (or Lower depending on your need)