Regular Expressions 101

Sponsors

Library entries

1
golang

Lxx Wurzel

no description available
Submitted by anonymous - 2 years ago
1
python

Week Regex

Regex for MM/DD/YYYY week
Submitted by anonymous - 2 years ago
1
python

2- SEMANA3

no description available
Submitted by anonymous - 2 years ago
1
python

ali

no description available
Submitted by anonymous - 2 years ago
1
python

ali

no description available
Submitted by anonymous - 2 years ago
1
python

linkedin

no description available
Submitted by anonymous - 2 years ago
1
python

2line

no description available
Submitted by anonymous - 2 years ago
1
python

Redis output

no description available
Submitted by anonymous - 2 years ago
1
python

matches any MAC ID in router log files

no description available
Submitted by anonymous - 2 years ago
1
python

test

no description available
Submitted by anonymous - 2 years ago
1
python

Strip ANSI escape characters

no description available
Submitted by anonymous - 9 years ago
1
python

IPv4 extraction

no description available
Submitted by Jacob - 9 years ago
1
python

Path to devices

no description available
Submitted by Airam - 9 years ago

sophos

Vote

1

Regular Expression
python

"
(?P<date>\S{3}\s\d{1,3}\s\d{2}\:\d{2}\:\d{2})\s(?P<device>\S+)\s\S\=(?P<src>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\:\s\S\=\"(?P<user>.*?)\"\s\S\=\d+\s\S\=\S\s\S\=\d+\s\S\=\d+\s\S+\=\d\s\S{1,3}\=.*?type=\".*?\"\s.*?meth=(?P<type>\S+)\s\S+\=\"(?P<url>.*?)\"\s\S{2}\=\"(?P<agent>.*?)\"\s\S{1,3}\=\"(?P<url2>.*?)dom\=\"(?P<domain>.*?)\".*?target_ip\=\"(?P<dest>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\".*
"

Description

Loading markdown...
Submitted by bwl - 7 years ago