I have a bunch of Japanese Manga and Doujin that I would like to rename. The file names vary in size and can have any number of bracketed text like this
[EROTOMANIA (Nanae)] Ecchi na Gal JK ga Kyokon Zetsurin Oji-san to Pakoru Yatsu [English] [Nisor] [Colorized] [Miss One Life] [Digital] [Decensored].cbz
I would like to lop off all the text in brackets except for [Colorized] and [Decensored]
I have seached through this forum and other regex websites and have managed to come up with this expression that seems to work in regex101.com but it doesn't quite work in BRU
Match: /(\[Colorized\])|(\[Decensored\])|(\[[^()]*?\])/g
This lops off all the bracketed text.
When i put \1 \2 in replace, nothing happens. If I go further and do \3 all the bracketed text returns. That tells me something is not working correctly in my capture groupings or in the interpretation of it in BRU.
I have checked the settings in Regex101 and have set v2 and PCRE >= 7.3 just to make sure I am using compatible statement.
Can someone please help me troubleshoot this?