Replaced `eval` templates with a perl regex replacement.