Skip to content

Zero Padded Ranges

Derek Callaway edited this page Apr 19, 2018 · 3 revisions

strglob wiki

Zero Padded Ranges

The zero padded ranges feature of strglob implements an ordered set of whole numbers prepended by one or more zeroes. The syntax is identical to regular number ranges, except zeroes are prepended to the minimum and maximum values. Refer to the example below for a demonstration. Note that a zero padded range may not begin or end with a zero because the parser will not know where the padding ends and the value begins.


Example Input

[01-04]


Example Output

01
02
03
04