in reply to user supplied regex substitution

Q1: nearly unintelligible; what AM's code? hacked how?

Q2: depends on intent of Q1. Please clarify.

Q3: Confusing at best. Are you really asking about methods to hack-proof a regex (regexen, generally?) or how to "give a malicious user" an opportunity to do something baaaad?


If I've misconstrued your question or the logic needed to answer it, I offer my apologies to all those electrons which were inconvenienced by the creation of this post.