Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
badsql_match
//Title of this code //Rextester.Program.Main is the entry point for your code. Don't change it. using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { string str = "update[calls] where"; string[] restrictStrings = {"insert","update","delete","create","alter","rename","truncate","comment","merge","lock", "drop", "exec","grant","revoke"}; bool m = restrictStrings.Any(rs =>Regex.IsMatch(str, rs+"[\\s+\\[]")); Console.WriteLine(m); } } }
run
|
edit
|
history
|
help
0
C# first code
⁸
Encrypt-Decrypt String
Math 9.6
Putting In-Between Symbols
aba
WDW
Vídeo01 - Classe e Método
MVC Learning
Fibonacci with Given Length