in reply to Re^2: Regular expression match and substitution
in thread Regular expression match and substitution
not "a good idea," cuz you'll be setting eval to work on what may be malicious input from user.
read about untainting and generally, security.