Regular Expressions 101

Sponsors

Library entries

1
pcre

replace test

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

ZLNLB

Zero length negative lookbehind
Submitted by anonymous - 7 years ago
-3
javascript

Detect a numeric string

no description available
Submitted by Ankur Chauhan - 7 years ago
1
javascript

Spanish NIE / NIF Validator

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

reference

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

domain from full url

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

Extract Metadata

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

reference

reference pattern checking
Submitted by karthikeyan - 7 years ago
-2
pcre

regex demo

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

tr

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

UUID regex

no description available
Submitted by santisaez - 7 years ago

REGEX to parse IIS7 Log File into FluentD

Vote

4

Regular Expression
pcre

/
^(?<date>\d{4}\-\d{2}\-\d{2}\s+)(?<time>\d{2}\:\d{2}\:\d{2}\s+)(?<sip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\s+)(?<csmethod>.+?\s+)(?<csuristem>.+?\s+)(?<csuriquery>.+?\s+)(?<sport>\d{1,3}\s+)(.+?\s+)(?<cip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\s+)(?<csUseragent>.+?\s+)(?<scstatus>\d{1,3}\s+)(?<scsubstatus>\d{1,3}\s+)(?<scwin32status>\d+\s+)(?<scbytes>\d+\s+)(?<csbytes>\d+\s+)(?<timetaken>\d+)?$
/

Description

Loading markdown...
Submitted by Juan Carniglia - 8 years ago