added additional debug logging to show what regex is being evalutated