in reply to Re^2: Match two files using regex
in thread Match two files using regex

I was able to get the correct output by adding these variables to the print command.