Folderize glitch if regex group starts with a number

Would you like Bulk Rename Utility to offer new functionality? Post your comments here!

Folderize glitch if regex group starts with a number

Postby Luuk » Fri Aug 06, 2021 4:42 pm

This very hard to explain, so Im just presenting some example filenames, to list the group matching...
Code: Select all
^(.....)-(.*)-(.*)-(.*)   \1      \2      \3       \4    \\1          \\1 conducts like this ...
2Name-Begin-Middle-End    2Name   Begin   Middle   End   BeginName    \\1 ==> \2\1 (removing '2' from \1)
3Name-Begin-Middle-End    3Name   Begin   Middle   End   MiddleName   \\1 ==> \3\1 (removing '3' from \1)
4Name-Begin-Middle-End    4Name   Begin   Middle   End   EndName      \\1 ==> \4\1 (removing '4' from \1)
9Name-Begin-Middle-End    9Name   Begin   Middle   End   \9Name       \\1 ==> as expected
AName-Begin-Middle-End    AName   Begin   Middle   End   \AName       \\1 ==> as expected

If any group starts with a low-enough number, you cannot folderize it by putting \ in front of its \GroupNumber.
If only using 2-groups, theres no troubles if they start with 3-or-higher, or with anything besides a number.
So for now, my workaround is using the "v2" regex and using '\\' to say each '\'.
Luuk
 
Posts: 692
Joined: Fri Feb 21, 2020 10:58 pm

Return to Suggestions