ruby - Update a regex to find SQL syntax errors -


i have regular expressions find syntax errors off of webpages (i'm pentester living):

sql_regex = %r((?-mix:sql query error)|(?-mix:mysql query error)|(?-mix:expects parameter)|(?-mix:you have error in sql syntax)) 

i regex find error messages on website if have incorrectly closed sql syntax, 1 above works, seems me it's little slower could be, suggestions on how make better more reliable regex?


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -