Dictionary: Better regexp in the "format" helper function.