in reply to need regular expression
That one won't promote single-digit numbers to double-digit numbers.
could do it, but that's similarly untested :-)
But if that's your spec, then try s/(\d?\d)-(\d?\d)-(\d?\d)/sprintf("20%02d-%02d-%02d", $1, $2, $3)/eg
No recent polls found