Regular Expressions 101

Sponsors

Library entries

1
pcre

Youtube Regex

To get video id from different formats
Submitted by bux - 7 years ago
1
pcre

Basic email validation

A basic and rude email validation
Submitted by Yemolai - 7 years ago
1
pcre

Ebay item id from URL

no description available
Submitted by Nanodev Limited - 7 years ago
1
pcre

test

test
Submitted by umesh - 7 years ago
1
pcre

lookahead (and)

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

namedQueryPattern

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

PolicyNumber

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

php short tags

Find all php short tags
Submitted by anonymous - 7 years ago
1
pcre

GIIN

Global Intermediary Identification Number composition test
Submitted by ddronenko - 7 years ago
1
pcre

currency EU

checks the currency in EU
Submitted by Paul Font Freide - 7 years ago
1
pcre

rsa_root_prompt

Root Prompt of RSA
Submitted by anonymous - 7 years ago
1
pcre

test

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

CallSign

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