Report question

Question: How to sub with matched groups and variables in Python