s/(\d+)/substr"00$1",-3/eg; [download]
In reply to Re: Leading Zeros by I0 in thread Leading Zeros by Monolith-0