Regular Expressions 101

Library entries

0
pcre2

exclude square brackets

exclude square brackets
Submitted by tarek - a day ago
0
pcre

strip host port

removes port number from URL
Submitted by pc - 3 days ago
0
java

Martch Letras y Parentesis

Martch Letras y Parentesis
Submitted by Daniel Gonzalez - 3 days ago
0
pcre2

YouTube link parser

Validate an URI to YouTube video.
Submitted by anonymous - 4 days ago

Bespoke NGINX Log Parse

Vote

0

Regular Expression
python

r'
(?P<ip>\S*) (?P<firstseperator>-) (?P<userid>\S+|-) (?P<timestamp>\[\S+ \S+) "(?P<URL>\S+|\S+ \S+ [A-Z/0-9.]+)" (?P<http_code>[0-9]+) (?P<guessing_size>[0-9]+) "(?P<endpoint_url>\S+|-)" "(?P<client_and_version>[a-zA-Z/0-9.-]+)
'
gm

Description

Loading markdown...
Submitted by Simon - 2 months ago