Regular Expressions 101

Sponsors

Library entries

0
python

PostfixParser

Full regex for failed sendings
Submitted by anonymous - 6 years ago
0
python

textdom处理

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

apt list Version 2

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

Facebook embedded video

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

WoW Screenshot

If you need to rename it
Submitted by anonymous - 6 years ago
1
python

MML

no description available
Submitted by Aron - 6 years ago
1
python

capital of

no description available
Submitted by Shebin - 6 years ago
1
python

Lib

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

.*(\d+).* Selects last number

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

pwl repo titles

no description available
Submitted by Devin McGloin - 6 years ago
1
python

URL matched

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

MAC ADDRESS

no description available
Submitted by abaumann - 6 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