I would like to answer this question with
To get all the features of Perl fancy formatting and for hash data, you need (the best version):
but I am ashamed of the risky / brute force approach to capturing a tail format string.
So: is there a regular expression for the FORMAT string that you can trust?
source share