Regular Expressions 101

Sponsors

Library entries

0
pcre

url GET parameters

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

t

no description available
Submitted by anonymous - 8 years ago
4
pcre

Get URL parameters

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

parse images

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

CAS error regex

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

Find all drives not the primary logical

no description available
Submitted by Cm - 8 years ago
1
pcre

Nth match

Matches the nth five digit number
Submitted by anonymous - 8 years ago
0
pcre

html text grep

no description available
Submitted by Cyrbil - 8 years ago
1
pcre

Test

Test
Submitted by Test - 8 years ago
4
pcre

Command handling

Handles commands like in CMD
Submitted by anonymous - 8 years ago
0
pcre

first word plus string

first word and resulting string
Submitted by anonymous - 8 years ago
2
pcre

Parse keywords from search string

no description available
Submitted by @bananascript - 8 years ago
1
pcre

Test

PO BOX
Submitted by anonymous - 8 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