Regular Expressions 101

Sponsors

Library entries

1
pcre

Prescription line

Line of text in a medical presciption
Submitted by Jermaine McFarlane - 7 years ago
1
pcre

Read df -h command output

Parses df -h
Submitted by Aaron Peterson - 7 years ago
1
pcre

lsblk output parser

Parses lsblk output
Submitted by Aaron Peterson - 7 years ago
1
pcre

Angular2 Import

no description available
Submitted by Anis ABID - 7 years ago
1
pcre

lazedo

kam
Submitted by lazedo - 7 years ago
1
pcre

quoted key-values in SIP dialog

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

SectIO

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

Slack auth token validation

Validates any Slack auth tokens.
Submitted by Lemmmy - 7 years ago
1
pcre

1

1y
Submitted by anonymous - 7 years ago
1
pcre

get video id from youtube link

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

Match a digit

Matches any digit 0-9
Submitted by Dan Turchin - 7 years ago
1
pcre

fluentd + auditd

parse auditd logs with fluentd
Submitted by anonymous - 7 years ago
1
pcre

not a character and not spaces

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

0-360phil

For phil
Submitted by Serg Kronrod - 7 years ago

lnav nginx access_log parser (for a slightly extended variation of combined log format)

Vote

1

Regular Expression
pcre

/
(?:-|(?P<real_ip>[\-\da-f.:]+))\s+\[(?P<remote_ip>[\da-f.:]+)\]\s+[\w\.\-]+\s+(?<remote_user>\S+)\s+\[(?<timestamp>[^\]]+)\]\s+"(?:\-|(?<request>\w+) (?<request_uri>[^ \?]+)(?:\?(?<request_uri_query>[^ ]*))? (?<request_version>[\w\/\.]+))"\s+(?P<status>[1-9]\d{2})\s+(?P<body_bytes_sent>\d+)\s+"(?<http_referer>[^"]+)"\s+"(?<http_user_agent>[^"]+)"\s+\[(?:\-|(?P<upstream_response_time>\d+(?:.\d+)?))\s+(?P<request_time>\d+(?:.\d+)?)\]
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 years ago