Mar-15-2020, 01:54 PM
I am using a modifier to ignore uppercase and lowercase letters of certain words according to the regular expression below: The regex works but presents the following error: ( DeprecationWarning: Flags not at the start of the expression '^(?!.*SELECT).(?i).*' (truncated)
r"^(?!.*SELECT).(?i).*$", v_path ), Below is the code :
r"^(?!.*SELECT).(?i).*$", v_path ), Below is the code :
import re v_path = "index.html/search?id=10" v_sqli = re.match( r"^(?!.*SELECT(?i)).*$", v_path ) try: v_output = v_sqli.string print("Security Data") except(TypeError, AttributeError): print("Insecure Data")