Your code will work since you're using a regex match. I was replying to bl968.
Granted that your code may cause people taking control over your pc however, but that's just a "minor" side effect from not knowing what you're doing I guess.
Do you have a link where I can read up on eval?