in reply to Regexp substitution w/ variable value (again)

"doesn't work" is a meaningless diagnostic. In what way does it not work? You don't even show how it's used.

The slash before $date in the replacement expression looks hinky.