by Luuk » Tue Aug 22, 2023 5:45 am
This depends on your prefixs starting with 1-or-2 english letters, followed by 1-3 digits, followed by " - ", and then some text.
RegEx(1) can pad them to 4-digits, but needs a checkmark for "v2", with a "Match" and "Replace" something like...
^([a-z]{1,2})(\d{1,3} - .+)(?X)(\G|^[a-z]{1,2})\K0(?=\d{4,} - .+)/g
${1}0000000000$2(?X)
With the checkmark for "v2", RegEx(1) can use (?X) to conduct many different regexs during 1-rename.
So the 1st-Match/Replace just adds many extra zeros, but really all your Replace needs is just 3-zeros.
The 2nd-Match doesnt have any Replace, so it deletes any extra zeros, when there's 4-or-more digits.