in reply to taint problem

You need parentheses in the regex to capture the name to $1.

After Compline,
Zaxo