[ qr/^(?!START:|END:)([^*: ][^:]+):(.+)\n/, \&header ] #### { re => qr/^(?!START:|END:)([^*: ][^:]+):(.+)\n/, action => \&header }