Finds digit runs and pads or trims leading zeros to a target width.
Shorter numbers gain leading zeros up to the width.
Longer numbers stay unchanged unless Strip surplus leading zeros first is checked.
By default only the first number that needs a change is fixed.
Options
Target width of N digits - Target digit count for each number run.
Strip surplus leading zeros first - When checked, trim extra leading zeros from longer runs down toward the target width when safe.
Whole word only - Skip numbers that sit next to a letter (for example leave the 1 in doc1).
Maximum numbers to fix (0 = all) - How many numbers to change, left to right. Default is 1. Use 0 to fix every match. Numbers that are already the right width do not count.
Examples
Target width of4 digits
9 - Intro >>> 0009 - Intro
Target width of3 digitsMaximum numbers to fix1 (default)
05-Opus 40 >>> 005-Opus 40
Target width of3 digitsMaximum numbers to fix0 (all)
05-Opus 40 >>> 005-Opus 040
Target width of3 digitsStrip surplus leading zeros firston