Regular Expressions 101

Sponsors

Library entries

0
pcre

Matches Symbols on Keyboard

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

Remove Leading and Trailing Spaces

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

jquery regex

no description available
Submitted by Cork - 10 years ago
0
pcre

Verify and match e-mail address

no description available
Submitted by Josh K - 10 years ago
0
pcre

negated special characters

no description available
Submitted by Rimjhim - 9 years ago
0
pcre

help me please

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

decimal numbers

match decimal numbers with sign
Submitted by mariano_dm - 9 years ago
0
pcre

php comment

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

background:url

no description available
Submitted by Mitus M. - 9 years ago

Apache/Nginx log parser with Cookie

Vote

0

Regular Expression
pcre

/
((?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))[, ].{1,}\[([0-3][0-9]\/\w{3}\/[0-9]{4}):([0-2][0-9]:[0-5][0-9]:[0-5][0-9]) ((?:\+|\-)[0-9]{4})\].{1,}"(GET|POST|HEAD|PUT|DELETE|TRACE|CONNECT) ([\/\w\.\-\?\_\=\*\$\%\:]+).{1,}" (\b\d{3}) (\d+|-) "((?:(?:http(?:s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,24}\b[-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)|-)" "([^"]+)" "([^"]+)"$
/

Description

Loading markdown...
Submitted by Samuil Dichev - 8 years ago