Regular Expressions 101

Sponsors

Library entries

0
pcre2

Semver regex

Example of regex for semver with pre-releases
Submitted by anonymous - 7 hours ago
0
pcre2

Números reales

Números reales
Submitted by Carlos Osmar - 17 hours ago
0
pcre2

Validación de fecha

Este código validará la fecha
Submitted by Carlos Osmar - a day ago
0
pcre2

Doble Espacio

Encuentra texto con toble espacio
Submitted by Carlos Osmar - a day ago
0
pcre2

Invoice nr

regexp search in mongo db by nr
Submitted by Tivadar - 2 days ago
0
pcre2

MySQL DATETIME

MySQL DATETIME
Submitted by anonymous - 4 days ago
0
pcre2

Split Http(s) Response

Split Http(s) Response
Submitted by anonymous - 5 days ago
0
pcre2

Vivaldi

Vivaldi
Submitted by anonymous - 5 days 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