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
Variables
tax cal
Fechas
AX 2012 Test #1
Search Element In Array-Recursive
Knapsack Problem - recursive
Gen inheritance test
Sample
1.2 Basics: object orientation
Truncate String by Byte