Regular Expressions 101

Sponsors

Library entries

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
1
python

example

group matching
Submitted by anonymous - 9 years ago

kasper-py-regexp for agent

Vote

1

Regular Expression
python

"
(?P<device>\w+-\w+)\s+(?P<ObjectDetected>\w+.\w+.\w+.\w+.)(?P<date>\w+,\s+\w+\s+\d+,\s+\d+)\s+(?P<time>\d+:\d+:\d+\s+\w{1,2})\s+(?P<Path>[A-Z]:\\.+)\s+(?P<Type>Trojan|Virus|Worm)\s+((?P<Action>).+)((?P<Account>)((DOTIN\\)).+)\s+(?P<AVApplication>(Kaspersky).+)(?P<version>\d+.\d+.\d+.\d+)\s+((?P<Visibledate>(Monday,|Saturday,|Sunday,|Tuesday,|Wednesday,|Thursday,|Friday,))\s+(January|February|March|April|May|June|July|August|September|October|November|December)\s+(\d+,\s+\d+\s+\d+:\d+:\d+\s+\w+))\s((?P<lastConnection>(Monday,|Saturday,|Sunday,|Tuesday,|Wednesday,|Thursday,|Friday,))\s+(January|February|March|April|May|June|July|August|September|October|November|December)\s+\d+,\s+\d+\s+\d+:\d+:\d+\s+(PM|pm|AM|am))\s+(?P<IP>\d+.\d+.\d+.\d+)\s+(?P<ClientName>\w+-\w+)\s+(?P<Domain>\w+)
"

Description

Loading markdown...
Submitted by reza-ad - 7 years ago