Regular Expressions 101

Library entries

brightblue swift syslog

Vote

0

Regular Expression
python

"""
.{16} (?P<server>[\w.-]+)\s (?P<servertype>[^:]+):\s (?P<clientip>[\d.]+|-)\s (?P<clientip_2>[\d.]+|-)\s (?P<timestamp>.+?)\s (?P<http_action>.+?)\s (?P<path>.+?)\s HTTP/(?:[0-9\.]+)\s (?P<status>\d+)\s (?P<huh3>.+?)\s #(?P<huh4>\d+)\s (?P<encoded_user_agent>\S+?)\s (?P<huh41>.+?)\s (?P<huh5>\S+)\s (?P<huh6>\S+)\s (?P<huh7>\S+)\s (?P<tx>\S+)\s (?P<huh8>\S+) (?P<ms>[\d.]+)\s (?:\S+)\s (?:\S+)\s (?P<blocktime>[\d.]+)\s (?P<blocktime2>[\d.]+)\s \S+
"""
x

Description

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