Regular Expressions 101

Community Patterns

0

find const string in code for xml/java

Python
.
Submitted by anonymous - 2 years ago
0

Log Analysis Google

Python
final project
Submitted by anonymous - 2 years ago
0

Regex

Python
wifiwnsml
Submitted by krishabj - 2 years ago
0

DEPIT INFO

Python
K
Submitted by K - 2 years ago
0

SUBTOTAL

Python
SUBTOTAL 15.88
Submitted by KRISHNA - 2 years ago
0

CPF|CNPJ

Python
Match Brazilian documents
Submitted by Bacco - 2 years ago
0

恩更

Python
非法发
Submitted by anonymous - 2 years ago
0

dice thing

Python
Stuff for a dnd thing
Submitted by Cata - 2 years ago

Mikrotik Regex Firewall Log Golang

0

Regular Expression
Golang

`
^.+>[\d]\s(?P<Date>\d{4}-\d{2}-\d{2})T(?P<Time>\d{2}:\d{2}:\d{2}).+firewall,info\s(?P<RadUser>\d+).+in:(?P<InputInterface>[^,]+)\s+out:(?P<OutputInterface>[^,]+),\s+(?:src-mac\s+(?P<SourceMacAddress>[^,]+),\s+)?proto\s+(?P<Protocol>\w+)(?:\s+\((?P<Flags>[^)]+)\))?,\s+\[?(?P<SrcIP>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|[a-f\d:]+)\]?(?::(?P<SrcPort>\d+))?->\[?(?P<DstIP>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|[a-f\d:]+)\]?(?::(?P<DstPort>\d+))?,\s(?P<NAT>\w+)\s\((?P<SrcIpLocalNat>\b(?:\d{1,3}\.){3}\d{1,3}\b):(?P<SrcPortLocalNat>\d+)->(?P<SrcIpPublicNat>\b(?:\d{1,3}\.){3}\d{1,3}\b):(?P<SrcPortPublicNat>\d+)\)->(?P<DestIpNat>\b(?:\d{1,3}\.){3}\d{1,3}\b):(?P<DestPortNat>\d+),.+
`

Description

Loading markdown...
Submitted by Vitor Abbade - 2 years ago