Showing 2 results for: June 2007 ×ModSecurity Rules ×

Optimizing Regular Expressions

As many of you have noticed, the Core Rule Set contains very complex regular expressions. For example: (?:\b(?:(?:s(?:elect\b(?:.{1,100}?\b(?:(?:length|count|top)\b.{1,100} ?\bfrom|from\b.{1,100}?\bwhere)|.*?\b(?:d(?:ump\b.*\bfrom|ata_type)| (?:to_(?:numbe|cha)|inst)r))|p_(?:(?:addextendedpro|sqlexe)c|... These regular expressions are assembled from a list of simpler regular expressions for efficiency reasons. A single optimized regular expression...