Replace eval() with regular expression.