Regular Expressions 101

Sponsors

Library entries

1
pcre

Parse DocBlock tags

Parse DocBlock tags to name & value
Submitted by Jaanus Heeringson - 6 years ago
1
pcre

hjkkk

no description available
Submitted by anonymous - 6 years ago
1
pcre

anchor from within html tags

no description available
Submitted by anonymous - 6 years ago
0
pcre

Negative Lookahead

Negative Lookahead Sample
Submitted by TBU - 6 years ago
1
javascript

Cascade ID

no description available
Submitted by anonymous - 6 years ago
1
pcre

test

no description available
Submitted by anonymous - 6 years ago
-1
pcre

IPv4 Advanced

no description available
Submitted by Abdullah Pazarbasi - 6 years ago
1
pcre

IP Address

IPv4 Address Input
Submitted by anonymous - 6 years ago
1
pcre

q

no description available
Submitted by anonymous - 6 years ago
1
pcre

Trim whitespaces regex

this is trim-like regex
Submitted by Giuseppe Tavella - 6 years ago
1
javascript

^((?!^City$)[a-zA-Z '])+$

no description available
Submitted by anonymous - 6 years ago
1
javascript

Username

no description available
Submitted by anonymous - 6 years ago
1
pcre

CI-Bol

no description available
Submitted by anonymous - 6 years ago
1
pcre

X user Y response

grep logs with X username and Y response code
Submitted by anonymous - 6 years ago

Sql Injection detection

Vote

2

Regular Expression
javascript

/
(\s*([\0\b\'\"\n\r\t\%\_\\]*\s*(((select\s*.+\s*from\s*.+)|(insert\s*.+\s*into\s*.+)|(update\s*.+\s*set\s*.+)|(delete\s*.+\s*from\s*.+)|(drop\s*.+)|(truncate\s*.+)|(alter\s*.+)|(exec\s*.+)|(\s*(all|any|not|and|between|in|like|or|some|contains|containsall|containskey)\s*.+[\=\>\<=\!\~]+.+)|(let\s+.+[\=]\s*.*)|(begin\s*.*\s*end)|(\s*[\/\*]+\s*.*\s*[\*\/]+)|(\s*(\-\-)\s*.*\s+)|(\s*(contains|containsall|containskey)\s+.*)))(\s*[\;]\s*)*)+)
/
i

Description

Loading markdown...
Submitted by Saeed.Tabrizi@gamil.com - 6 years ago