Add a 'capture' jinja2 filter

This filter returns the string captured by an arbitrary regex capture group.