% Example regex file: extracted from emerging threats snort rules
% http://rules.emergingthreats.net/open/snort-2.9.0/
2018289	(?i)id\=[^\r\n]*?(?:select|delete|union|update|insert)
2011122	(?i)[^\w]REVERSE[^\w]?\(
2003903	(?i)<?(java|vb)?script>?.*<.+\/script>?
2003696	(?i)=\s*(https?|ftps?|php)\:\/
2016217	(?i)\/cgi-bin\/ms\/check$
2016027	[a-z0-9]{32}\.jar
2018242	^Accept\x3a\x20\*\/\*\r\nAccept-Language\x3a\x20[^\r\n]+\r\nUser-Agent\x3a\x20[^\r\n]+\sMSIE\s\d+\.\d+[^\r\n]+\r\nHost\x3a\x20www\.google\.com\r\nConnection\x3a\x20Close\r\n(?:\r\n)?$
2014388	(?i)folder=\s*(ftps?|https?|php)\:\/
2013549	hcp_vbs\.php\?f=\d+&d=\d+$
2003716	(?i)=\s*(https?|ftps|php)\:\/
2010080	(?i)\x2Ephp\x3F.{0,300}\x3D(http\x3A|ftp\x3A|https\x3A|ftps\x3A)
2019958	(?im)^Host\x3a[^\r\n]+?dmp\.[^\r\n]+?\r?$
2103102	(?s)^(\x75|\x2d|\x2f|\x73|\xa2|\x2e|\x24|\x74)
2017648	^\/[a-z\_\-]{4,20}\.php\?(?:[a-z\_\-]{4,20}=\d+?&){3,}[a-z\_\-]{4,20}=-?\d+$
2009654	(?i)_page_javascript=\s*(ftps?|https?|php)\:\/
2012908	\.php\?v=[A-Za-z0-9.]+&id=-?\d+&wv=[0-9.]{1,14}$
2010770	(?i)servercert\x3D.+(script|onmouse[a-z]+|onkey[a-z]+|onload|onunload|ondragdrop|onblur|onfocus|onclick|ondblclick|onsubmit|onreset|onselect|onchange)
2015835	(?s)^\d+[\r\n]*?$
2014998	(?ms)\x2A[a-z0-9]{10}\x2A\x2Fwindow\x2Eeval\x28String\x2EfromCharCode\x28[0-9]{1,3}\x2C[0-9]{1,3}\x2C
2020983	(?m)Content-Disposition\x3a\x20[^\r\n]+filename=[a-z]{5,8}\d{2,3}\.jar\r\n
2013983	(?i)\/advert\/get(?:ads|kws)(?:\.cgi)?\?(?:d|[ex]_dp_)id=
2017885	^[A-Za-z0-9\/\+\x0D\x0A]+?(5leG|LmV4|uZXhl)
2018401	\/[\x2f\x2bA-Za-z0-9]{59}AAA==$
2009932	(?i)\x2Ephp\x3F.{0,300}\x3D(http\x3A|ftp\x3A|https\x3A|ftps\x3A)
2016979	\bsuhosin\.simulation\s*?=
2018204	^\/[b-u][A-Za-z0-9]{6,25}\.php$
2017441	[&\?]_REQUEST\[[^\]]+?\][^=]*?=
2018041	\/viewtopic\.php\?[^=]+=[a-zA-Z0-9\x2b\x2f]{43}=$
2013765	(?i)dir\x3d.+(script|onmouse[a-z]+|onkey[a-z]+|onload|onunload|ondragdrop|onblur|onfocus|onclick|ondblclick|onsubmit|onreset|onselect|onchange|style\x3D)
2020991	\/(?:Flash[23]?|Ink|New|One|HQ).exe$
2018380	^GET \/[^\x2f]+?\d+\.asp\?
2012130	(?i)mybloggie_root_path=\s*(ftps?|https?|php)\:\/
2012173	(?i)eval\x28(String\x2EfromCharCode\x28|[a-z,0-9]{1,20}\x28String\x2EfromCharCode\x28)
2020601	\/web_[0-9A-F]{12}\.jpg$
2011214	(?i)pathForArdeaCore=\s*(ftps?|https?|php)\:\/
2018365	(?im)^Host\x3a[^\r\n]+\.mrbasic\.com(?:\x3a\d{1,5})?\r?$
2009196	(?i)mj_config\[src_path\]=\s*(https?|ftps?|php)\:\/
2003329	(?i)^\/g($|[?#])
2019484	(?m)^User-Agent\x3a\x20[^\r\n]+?(?: MSIE |rv\x3a11)
2016338	(?i)src=\s*(?:(?:ht|f)tps?|data|php)\x3a\/
2017914	(?s)^[\x20-\x7e]+?.{8}\x79\x99
2012953	(?i)path_om=\s*(ftps?|https?|php)\:\/
2017687	(?i)(?:^|[\n\&])ACT=(?:%\d{2}|[^%&]){21}
2003441	(?i)User-Agent\:[^\n]+wbi_v\d
2102982	(?s)^(\x2d|\x2f|\x73|\xa2|\x2e|\x24|\x74)
2019445	(?i)(?:^|&|Content-Disposition[\x3a][^\n]*?name\s*?=\s*?[\x22\x27])\%6ea\%6d\%65\%5b[^\x5d]*?\W
2017438	[&\?]_POST\[[^\]]+?\][^=]*?=
2003401	\xae[\xef\xcf][\xf0\xd0][\xe5\xc5][\xee\xce]\xa0\xa2[\xe7\xc7][\xe5\xc5][\xf4\xd4]\xa2
2019779	(?i)\?action\d*?=[^&]+(?:&(?:action|update)\d+=[^&]*?)*?$
2017838	(?im)^Host\x3a[^\r\n]*?\.sinkdns\.org(\x3a\d{1,5})?\r$
