Regular Expressions 101

Community Patterns

0

REACT SDK V3

Golang
React SDK V3
Submitted by anonymous - a year ago
0

domain

Golang
ss
Submitted by sssssss - a year ago
0

pxc plcnext

Golang
plcnext version strings
Submitted by anonymous - a year ago
0

walter1976LastClean

Golang
walter1976LastClean
Submitted by anonymous - 10 months ago
0

Get digits

Golang
Trying to get digits
Submitted by Arthur Silva - 10 months ago
0

for killerswim

.NET 7.0 (C#)
a
Submitted by anonymous - 9 months 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