[% FOREACH file=files %] [% IF ( matches = file.date.match('dd/mm/(\d+)') ) %] [% matches.0 %] [% END %] [% END %]