Filename Cleanup Using Only RegEx in BRU (Simple OFF, v2 OFF

A swapping-ground for Regular Expression syntax

Filename Cleanup Using Only RegEx in BRU (Simple OFF, v2 OFF

Postby elewan9 » Tue Jul 15, 2025 9:02 am

Only Using REGEX(without using replace (3) or remove (4), charater translation etc.

(currently simple is unchecked, v2 unchecked) in bulk rename utility version 4.0.0.8

rename=
Code: Select all
!!k$h!t @nd Ra~~```hul..........Propo$..-..ed___-____ H__-erWearing Cr!cket Jersey[])(][)(}}{{[][Wedding](M@nd@p) {Gulabjamun}[Flew Barat.mkv


into=
Code: Select all
Iikshit And Rahul Proposed Her Wearing Cricket Jersey Wedding Mandap Gulabjamun Flew Barat.mkv


(reg ex should be able to clean such type of names).
elewan9
 
Posts: 1
Joined: Tue Jul 15, 2025 8:49 am

Using /g and (?X) for multiple replacements

Postby Luuk » Wed Jul 16, 2025 4:05 am

Since its many different replacements, should put the checkmark inside for "v2".
Then can use /g to say "global, so then a "Match" and "Replace" something like...

!/g(?X)@/g(?X)\$/g(?X)[][{}()~`._-]+/g(?X)([a-z])([A-Z])/g(?X)(^| )(.)/g
i(?X)a(?X)s(?X)(?X)$1 $2(?X)$1\u$2

If needing to remove other-characters, can add them into the underlined-characters before "-".
Luuk
 
Posts: 821
Joined: Fri Feb 21, 2020 10:58 pm


Return to Regular Expressions