in reply to Re^2: Generating a format template for a date
in thread Generating a format template for a date

Nice! Doing multiple subs on the same target is something which looks nicer using the implicit $_.

I definitely need to read up on my extended regexps though, those look-ahead/behind assertions are gnarly, dude.