Regular Expressions 101

Sponsors

Library entries

1
pcre

french phone number

french phone number
Submitted by lolo64 - 7 years ago
1
pcre

Время

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

ISIS Checking

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

reprocess

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

Check for missing closing bracket

no description available
Submitted by Bastin Geerts - 7 years ago
1
python

Two digit search.

Trying to understand the two digit lookup.
Submitted by mburke05 - 7 years ago
3
pcre

TTML time expression offset-time

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

TTML timestamp with frames

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

TTML timestamp with ms

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

function not prefixed

no description available
Submitted by Zack - 7 years ago
0
pcre

Telephone number with space

no description available
Submitted by rafanto - 7 years ago

parse nginx log

Vote

1

Regular Expression
pcre

/
(?P<ip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) (?P<domain>[^ ]+) \- \[(?P<datetime>\d{2}\/[a-zA-Z]{3}\/\d{4}:\d{2}:\d{2}:\d{2} (?:\+|\-)\d{4})\] "(?P<method>\w+) (?P<url>[^ ]+) (?P<proto>[^ ]+)" (?P<status>\d+) (?P<bytes>\d+)
/

Description

Loading markdown...
Submitted by ViKing - 7 years ago