I figure the easiest way to ensure they are GOOD is make a list of the half a dozen or so correct options it could be and remove anything else.
It's easiest to use placeholders or a combination of $dbh->quote and $dbh->quote_identifier.
In reply to Re: Simple regex to remove all but a list of words
by ikegami
in thread Simple regex to remove all but a list of words
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |