Regular Expressions 101

Sponsors

Library entries

2
python

IPv4 Validator

no description available
Submitted by dannyo - 7 years ago
1
javascript

password matching

no description available
Submitted by scopevale - 7 years ago
1
pcre

TLD Scratch tapes

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

Spell Checker Test

For use in testing SpellChecker(MHApps)
Submitted by Matt - 7 years ago
0
pcre

body tag extract

no description available
Submitted by Girish - 7 years ago
1
pcre

URL parser RegEx

Parse full URL and find parts
Submitted by Dakr Coder - 7 years ago
1
python

Ordinal

Matches ordinal numbers
Submitted by D - 7 years ago
1
javascript

huj

no description available
Submitted by anonymous - 7 years ago

Apache/Nginx Logs parsing

Vote

1

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 - 7 years ago