Regular Expressions 101

Library entries

0
pcre

111

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

Beginning of word

When looking for day, Sunday should not be matched.
Submitted by Ben - 8 years ago
0
pcre

replicated pageContent id within a div

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

c

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

(\s)(\d{9})(\s)</

no description available
Submitted by anonymous - 8 years ago
0
javascript

IBAN

Italian IBAN
Submitted by Italo - 8 years ago
0
javascript

two matches with pipe

no description available
Submitted by anonymous - 8 years ago
0
javascript

token

replace token like [foo:bar:ba zz]
Submitted by anonymous - 8 years ago
0
pcre

URL validation with http/https

URL validation with http/https
Submitted by Gunjan - 8 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