in reply to Using SprintF in S & R

s{<time>(\d+)</time>}{sprintf "<time>%06d</time>", $1}eg

Replies are listed 'Best First'.
Re^2: Using SprintF in S & R
by dirtdog (Monk) on Jul 11, 2017 at 18:06 UTC

    thank you! ...worked like a charm.