Regular Expressions 101

Sponsors

Library entries

3
pcre

ln -l linux parse

parse linux ln -l output command
Submitted by guignol95 - 7 years ago
3
pcre

Select all number greater than 36

no description available
Submitted by Mansoor - 7 years ago
3
pcre

coffeescript operator

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

Remove br tags inside anchor tags

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

iframe src parser

Get iframe src
Submitted by Sumeet Fefar - 7 years ago
3
pcre

JWT Validation

Validate a Json Web Token (JWT).
Submitted by Erik Maas - 7 years ago
3
pcre

TTML time expression offset-time

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

apache access log

parse the apache access log
Submitted by pagu - 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 - 9 years ago