s/\b(\d+)\b/sprintf "%013d", $1/eg; #### s/\b(\d+)\b/reverse sprintf "%013d", scalar reverse $1/eg;