Today I learned how I can use the method 'groupdict' from a regex match to get a dictionary with all named groups.
There should be no such thing as boring mathematics.