Search found 4 matches

by regex_student
2025-07-30 10:06:50
Forum: Ant Renamer > Help
Topic: RegEx: how do I get the length of match group?
Replies: 6
Views: 91

Re: RegEx: how do I get the length of match group?


It would be possible, sure, but a lot of things could be done on groups, in this case you want to make padding but there is an infinite number of possible actions :D
I could try to make a list of useful actions, but all that would be a major feature to add, and my to-do list is already so much ...
by regex_student
2025-07-30 07:08:05
Forum: Ant Renamer > Help
Topic: RegEx: how do I get the length of match group?
Replies: 6
Views: 91

Re: RegEx: how do I get the length of match group?

I have been thinking about how to do the two step actions you had suggested, just haven't figured out the exact expression to limit or trim the number of digits due the actual filenames have various random length strings before and after the numbers

something like
wolf_tdi3.blahtlba.1.plowya.txt ...
by regex_student
2025-07-29 09:30:34
Forum: Ant Renamer > Help
Topic: RegEx: how do I get the length of match group?
Replies: 6
Views: 91

Re: RegEx: how do I get the length of match group?

Hi,

since the info are available in the code, is it possible to add new list (similar to multi-string replace) to the Regular expression renaming where user can add modifications to the captured group? in this case, I would add action to make the capture group 1 to have at least 5 chars and left ...
by regex_student
2025-07-28 23:51:47
Forum: Ant Renamer > Help
Topic: RegEx: how do I get the length of match group?
Replies: 6
Views: 91

RegEx: how do I get the length of match group?

I have files with variable length names which I would like to rename them to a fixed length
from
1.txt
23.txt
492.txt
to
00001.txt
00023.txt
00492.txt

Ant Renamer Regular expressions renaming has a link to TRegExpr manual that menthions MatchLen property for Groups, but I couldn't find how to ...