Regular Expressions 101

Sponsors

Library entries

0
java

date dd.mm.yyyy

Date format dd.mm.yyyy
Submitted by anonymous - 18 hours ago
0
java

partnkey value

Extract value partn_key
Submitted by anonymous - 7 days ago
0
java

Identifier Regex

Regex for identifiers
Submitted by anonymous - 12 days ago
0
java

test

test
Submitted by anonymous - a month ago
0
java

Mt940-61

Parse tag 61 of an mt940 statement
Submitted by anonymous - a month ago
0
java

grade pattern

grade pattern for chinese school grade
Submitted by anonymous - 2 months ago

suricata OSSIM regex-1

Vote

2

Regular Expression
python

"
^(?P<date>\S+\s+\d\s\d\d:\d\d:\d\d) (?P<hostname>\S+) suricata\[(?P<pid>\d+)\]: \[(?P<sid>\d+:\d+:\d+)\] (?P<msg>.+) \[Classification:(?P<classification>.+)\] \[Priority:(?P<priority> \d+)\] \{(?P<proto>.+)\} (?P<src_ip>[\d.]{7,15}):(?P<src_port>\d+) -> (?P<dst_ip>[\d.]{7,15}):(?P<dst_port>\d+)$
"

Description

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