by Admin » Tue Jul 01, 2025 3:53 am
To achieve renaming like this:
Original -> Result
GX010001 -> GX0001A
GX010002 -> GX0001B
GX010003 -> GX0001C
GX020001 -> GX0002A
GX020002 -> GX0002B
GX030001 -> GX0003A
You want to:
1. Extract the middle part number (e.g. 100, 200, 300) and convert it to a zero-padded number with 4 digits (e.g. 0001, 0002, 0003).
2. Append a letter suffix (A, B, C, ...) incrementing per file within the same group (e.g. GX0001A, GX0001B, GX0001C).
3. Keep the prefix "GX".
How to do this in Bulk Rename Utility:
- Use Numbering (10) to add the letter suffix (A, B, C...) with:
- Mode: Suffix
- Start: a (or A)
- Incr.: 1
- Pad: 1
- Type: a-z or A-Z (for letters)
- Case: Upper or lower as needed
- Use Name (2) with a Regular Expression (RegEx) or Replace (3) to transform the numeric part:
- Extract the numeric part (e.g. 10001) and reformat it to 0001.
- You may need to use RegEx to capture and replace parts of the filename.
- Alternatively, use the Insert Number at Position option in Numbering (10) to insert the zero-padded number at the correct position.
- If the numbering reset or grouping depends on the middle number (e.g. 01, 02, 03), use the Break option in Numbering (10) to reset the letter suffix when that part changes.
Example setup:
- Numbering (10):
- Mode: Suffix
- Start: a
- Incr.: 1
- Pad: 1
- Type: a-z
- Break: 6 (or the position where the group number changes)
- Sep.: (empty)
- Name (2):
- Use RegEx or Replace to convert "GX010001" to "GX0001"
- For example, use RegEx Match: `GX0(\d{2})(\d{3})` and Replace: `GX000$2`
If this is complex, consider using the JavaScript Renaming Engine for full control.