I have a tcl variable $value that is being passed through a hidden input field.
What would be a good regular expression to get it checked for an SQL injection.
I would want it to allow only numbers in case.
I would want it to allow only characters in another case.
And numbers and characters both in another case.
In all 3 cases I do not want any special chracters to be included
To remove non-matching chars
See Tcl man pages for regexp, regsub, and re_syntax