Merge 2 Regex command in 1?

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Merge 2 Regex command in 1?

Postby Nicolast » Mon Aug 28, 2023 7:30 am

Hi,
I'm trying to renaming some files using a single one command in Regex, for example:

M_T_SERIES-series1-episode1 ? My Tv Series S01E01
M_T_SERIES-series1-episode2 ? My Tv Series S01E02
M_T_SERIES-series1-episode3 ? My Tv Series S01E03
[...]
M_T_SERIES-series1-episode10 ? My Tv Series S01E10
M_T_SERIES-series1-episode11 ? My Tv Series S01E11
[...]

At present What I'm doing is :

1st Regex command in the Match box I don't write anything (works in BRU 2.7.1.3), in the Replace box I write My Tv Series S01E ;
in the Numbering field Mode Suffix at 0 Start 1 Incr 1

I end up with
My Tv Series S01E1
My Tv Series S01E2
My Tv Series S01E3
[...]
My Tv Series S01E10
My Tv Series S01E11
[...]

to add zero in front of digits only (1-9) I type the following command in Regex:
2nd Regex command in the Match box I write (.+\D\s*)(\d)$ , in the Replace box I write \10\2

Now I get:
My Tv Series S01E01
[...]
My Tv Series S01E10
[...]

Is that possible to merge the 2 different regex command? Or if you could provide any another solution, I'd be very grateful.

Thanks a lot.
Sorry for trouble.

Nicolast
Nicolast
 
Posts: 2
Joined: Mon Aug 28, 2023 7:05 am

Merge 2-regexs in 1-rename

Postby Luuk » Mon Aug 28, 2023 9:49 am

The new versions can put a checkmark inside for "v2", so then using (?X) to conduct many regexs in 1-rename.
But its not needed, because Numbering(10) has "Pad" to say "minimum digits to use", and will insert the zeros.
Luuk
 
Posts: 706
Joined: Fri Feb 21, 2020 10:58 pm

Re: Merge 2-regexs in 1-rename

Postby Nicolast » Mon Aug 28, 2023 4:27 pm

Luuk wrote:The new versions can put a checkmark inside for "v2", so then using (?X) to conduct many regexs in 1-rename.
But its not needed, because Numbering(10) has "Pad" to say "minimum digits to use", and will insert the zeros.


Thank you Luuk,
It works as intended!!!!
Nicolast
 
Posts: 2
Joined: Mon Aug 28, 2023 7:05 am


Return to BRU Support


cron