in reply to Re: replace text with function ?in thread replace text with function ?
s/(\d+)/ sprintf('%03d', $1) /eg; [download]