Regular Expressions 101

Sponsors

Library entries

0
python

Almost working sites regex

no description available
Submitted by anonymous - 8 years ago
0
python

Negative lookbehind

no description available
Submitted by anonymous - 8 years ago
0
python

test

test
Submitted by boag - 8 years ago
0
python

UAE Phone Numbers

no description available
Submitted by Sebastian - 8 years ago
0
python

ipv4

no description available
Submitted by anonymous - 8 years ago
0
python

apache log analysis

no description available
Submitted by anonymous - 8 years ago
0
python

teste

tes
Submitted by tes - 8 years ago
0
python

email validation

no description available
Submitted by Yerko Palma - 8 years ago
0
python

pass

no description available
Submitted by anonymous - 8 years ago
0
python

Date Groupings

no description available
Submitted by flipkitty - 8 years ago
0
python

Match HTTP error code

no description available
Submitted by anonymous - 8 years ago

elb log filename parser

Vote

0

Regular Expression
python

"
^(?P<bucket>[^\/]+)\/(?:(?P<prefix>.+)\/)?AWSLogs\/(?P<aws_account_id>[\d]{12})\/elasticloadbalancing\/(?P<region>[\w\d\-]+)\/(?P<year>\d{4})\/(?P<month>\d{2})\/(?P<day>\d{2})\/(?P=aws_account_id)_elasticloadbalancing_(?P=region)_(?P<load_balancer_id>[\w\.\-\d]+)_(?P<end_time>\d{8}T\d{4}Z)_(?P<ip_address>(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))_(?P<random_string>.+)\.log\.gz$
"
gm

Description

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