I need to validate string to be alphanumeric and also avoid of SQL expressions inside it.
For completing this validation using jsonschema library, I built those two regex's -
First:
"([0-9]\\s*[0-9])"
Second:
"(^[insert|INSERT|into|INTO|delete|Delete|update|UPDATE|set|SET|where|WHERE|between|BETWEEN|like|LIKE|group by|GROUP BY|order by|ORDER BY|drop|DROP|truncate|TRUNCATE|create|CREATE|table|TABLE|join|JOIN|count|COUNT|avg|AVG|sum|SUM|null|NULL|(|)|{|}|[|]|,|.|;|])"
How can I add 'AND' operator to combine them?