Use named groups in output variables as we get from the matched regular expression. Also use the first group (0) with an optional name (or just "match" if not given).